/[emacs]/emacs/src/xterm.c
ViewVC logotype

Diff of /emacs/src/xterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.780 by kfstorm, Sun Mar 16 20:46:42 2003 UTC revision 1.781 by jhd, Mon Mar 17 23:03:53 2003 UTC
# Line 6395  xm_scroll_callback (widget, client_data, Line 6395  xm_scroll_callback (widget, client_data,
6395    
6396  #else /* !USE_MOTIF, i.e. Xaw or GTK */  #else /* !USE_MOTIF, i.e. Xaw or GTK */
6397  #ifdef USE_GTK  #ifdef USE_GTK
6398  /* Scroll bar callback for Gtk scroll bars.  WIDGET is the scroll  /* Scroll bar callback for GTK scroll bars.  WIDGET is the scroll
6399     bar adjustment widget.  DATA is a pointer to the scroll_bar structure. */     bar adjustment widget.  DATA is a pointer to the scroll_bar structure. */
6400    
6401  static void  static void
# Line 6453  xg_scroll_callback (widget, data) Line 6453  xg_scroll_callback (widget, data)
6453      {      {
6454        part = scroll_bar_handle;        part = scroll_bar_handle;
6455        whole = adj->upper - adj->page_size;        whole = adj->upper - adj->page_size;
6456        portion = min (position, whole);        portion = min ((int)position, whole);
6457        bar->dragging = make_number (portion);        bar->dragging = make_number ((int)portion);
6458      }      }
6459    
6460    if (part >= 0)    if (part >= 0)
6461      {      {
       xg_ignore_next_thumb = 1;  
6462        window_being_scrolled = bar->window;        window_being_scrolled = bar->window;
6463        last_scroll_bar_part = part;        last_scroll_bar_part = part;
6464        x_send_scroll_bar_event (bar->window, part, portion, whole);        x_send_scroll_bar_event (bar->window, part, portion, whole);

Legend:
Removed from v.1.780  
changed lines
  Added in v.1.781

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26