Mercurial > emacs
diff src/xterm.c @ 58985:0395e55b4aa7
* xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
returning when xg_ignore_gtk_scrollbar is true.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 15 Dec 2004 21:34:14 +0000 |
parents | 75cac0943699 |
children | 77ba45776c58 4ee39d9428b0 eac554634bfa |
line wrap: on
line diff
--- a/src/xterm.c Wed Dec 15 21:28:02 2004 +0000 +++ b/src/xterm.c Wed Dec 15 21:34:14 2004 +0000 @@ -4283,8 +4283,6 @@ int part = -1, whole = 0, portion = 0; GtkAdjustment *adj = GTK_ADJUSTMENT (gtk_range_get_adjustment (widget)); - if (xg_ignore_gtk_scrollbar) return; - position = gtk_adjustment_get_value (adj); p = g_object_get_data (G_OBJECT (widget), XG_LAST_SB_DATA); @@ -4298,6 +4296,8 @@ previous = *p; *p = position; + if (xg_ignore_gtk_scrollbar) return; + diff = (int) (position - previous); if (diff == (int) adj->step_increment) @@ -4329,7 +4329,7 @@ } if (part >= 0) - { + { window_being_scrolled = bar->window; last_scroll_bar_part = part; x_send_scroll_bar_event (bar->window, part, portion, whole);