Commit fecad3f6 authored by Jan Djärv's avatar Jan Djärv

* xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before

returning when xg_ignore_gtk_scrollbar is true.
parent 78f617dd
2004-12-15 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
returning when xg_ignore_gtk_scrollbar is true.
2004-12-14 Kim F. Storm <storm@cua.dk> 2004-12-14 Kim F. Storm <storm@cua.dk>
* keyboard.c (read_char): Save and restore echo_string when * keyboard.c (read_char): Save and restore echo_string when
......
...@@ -4283,8 +4283,6 @@ xg_scroll_callback (widget, data) ...@@ -4283,8 +4283,6 @@ xg_scroll_callback (widget, data)
int part = -1, whole = 0, portion = 0; int part = -1, whole = 0, portion = 0;
GtkAdjustment *adj = GTK_ADJUSTMENT (gtk_range_get_adjustment (widget)); GtkAdjustment *adj = GTK_ADJUSTMENT (gtk_range_get_adjustment (widget));
if (xg_ignore_gtk_scrollbar) return;
position = gtk_adjustment_get_value (adj); position = gtk_adjustment_get_value (adj);
p = g_object_get_data (G_OBJECT (widget), XG_LAST_SB_DATA); p = g_object_get_data (G_OBJECT (widget), XG_LAST_SB_DATA);
...@@ -4298,6 +4296,8 @@ xg_scroll_callback (widget, data) ...@@ -4298,6 +4296,8 @@ xg_scroll_callback (widget, data)
previous = *p; previous = *p;
*p = position; *p = position;
if (xg_ignore_gtk_scrollbar) return;
diff = (int) (position - previous); diff = (int) (position - previous);
if (diff == (int) adj->step_increment) if (diff == (int) adj->step_increment)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment