mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 18:52:22 -05:00
Fix Fedora-19 Segmentation fault, bugid 968817.
This commit is contained in:
parent
8ce1a9476d
commit
d7045e2b61
@ -1780,6 +1780,12 @@ gtk_xtext_scrolldown_timeout (GtkXText * xtext)
|
|||||||
GtkAdjustment *adj = xtext->adj;
|
GtkAdjustment *adj = xtext->adj;
|
||||||
textentry *ent;
|
textentry *ent;
|
||||||
|
|
||||||
|
if (buf->last_ent_end == NULL) /* If context has changed */
|
||||||
|
{
|
||||||
|
xtext->scroll_tag = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
||||||
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, 0, &win_height);
|
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, 0, &win_height);
|
||||||
|
|
||||||
@ -1821,6 +1827,12 @@ gtk_xtext_scrollup_timeout (GtkXText * xtext)
|
|||||||
GtkAdjustment *adj = xtext->adj;
|
GtkAdjustment *adj = xtext->adj;
|
||||||
textentry *ent;
|
textentry *ent;
|
||||||
|
|
||||||
|
if (buf->last_ent_start == NULL) /* If context has changed */
|
||||||
|
{
|
||||||
|
xtext->scroll_tag = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
gdk_window_get_pointer (GTK_WIDGET (xtext)->window, 0, &p_y, 0);
|
||||||
|
|
||||||
if (p_y < 0 && adj->value >= 0)
|
if (p_y < 0 && adj->value >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user