diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2003-03-17 23:03:53 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2003-03-17 23:03:53 +0000 |
commit | 17097258bdba66a449f6c690090a2b536c80b17b (patch) | |
tree | 52319a9267c01a419d7d0dc0302afc4fa913afea /src/xterm.c | |
parent | 8cb9dfbfc56c4ca8dcd9adef11bbc8d949387936 (diff) | |
download | emacs-17097258bdba66a449f6c690090a2b536c80b17b.tar.gz |
New approach to scrolling and scroll bars for better redraw and smoother
scroll bar behaviour.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index 380e4c73d7c..3aac2aeaf67 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6395,7 +6395,7 @@ xm_scroll_callback (widget, client_data, call_data) #else /* !USE_MOTIF, i.e. Xaw or GTK */ #ifdef USE_GTK -/* Scroll bar callback for Gtk scroll bars. WIDGET is the scroll +/* Scroll bar callback for GTK scroll bars. WIDGET is the scroll bar adjustment widget. DATA is a pointer to the scroll_bar structure. */ static void @@ -6453,13 +6453,12 @@ xg_scroll_callback (widget, data) { part = scroll_bar_handle; whole = adj->upper - adj->page_size; - portion = min (position, whole); - bar->dragging = make_number (portion); + portion = min ((int)position, whole); + bar->dragging = make_number ((int)portion); } if (part >= 0) { - xg_ignore_next_thumb = 1; window_being_scrolled = bar->window; last_scroll_bar_part = part; x_send_scroll_bar_event (bar->window, part, portion, whole); |