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>
* keyboard.c (read_char): Save and restore echo_string when
......
......@@ -4283,8 +4283,6 @@ xg_scroll_callback (widget, data)
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 @@ xg_scroll_callback (widget, data)
previous = *p;
*p = position;
if (xg_ignore_gtk_scrollbar) return;
diff = (int) (position - previous);
if (diff == (int) adj->step_increment)
......@@ -4329,7 +4329,7 @@ xg_scroll_callback (widget, data)
}
if (part >= 0)
{
{
window_being_scrolled = bar->window;
last_scroll_bar_part = part;
x_send_scroll_bar_event (bar->window, part, portion, whole);
......
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