changeset 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 425b020e8f99
children 59945307b86b
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Dec 15 21:28:02 2004 +0000
+++ b/src/ChangeLog	Wed Dec 15 21:34:14 2004 +0000
@@ -1,3 +1,8 @@
+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>
 
 	* keyboard.c (read_char): Save and restore echo_string when
--- 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);