comparison src/scrollbar-x.c @ 20:859a2309aef8 r19-15b93

Import from CVS: tag r19-15b93
author cvs
date Mon, 13 Aug 2007 08:50:05 +0200
parents 0293115a14e9
children 441bb1e64a06
comparison
equal deleted inserted replaced
19:ac1f612d5250 20:859a2309aef8
44 /* Used to prevent changing the size of the thumb while drag 44 /* Used to prevent changing the size of the thumb while drag
45 scrolling, under Motif. This is necessary because the Motif 45 scrolling, under Motif. This is necessary because the Motif
46 scrollbar is incredibly stupid about updating the thumb and causes 46 scrollbar is incredibly stupid about updating the thumb and causes
47 lots of flicker if it is done too often. */ 47 lots of flicker if it is done too often. */
48 static int inhibit_thumb_size_change; 48 static int inhibit_thumb_size_change;
49 int stupid_vertical_scrollbar_drag_hack = 1; 49 int stupid_vertical_scrollbar_drag_hack;
50 50
51 /* Doesn't work with athena */ 51 /* Doesn't work with athena */
52 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) 52 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID)
53 static int vertical_drag_in_progress; 53 static int vertical_drag_in_progress;
54 #endif 54 #endif
595 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) 595 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID)
596 vertical_drag_in_progress = 0; 596 vertical_drag_in_progress = 0;
597 SCROLLBAR_X_VDRAG_ORIG_VALUE (instance) = data->slider_value; 597 SCROLLBAR_X_VDRAG_ORIG_VALUE (instance) = data->slider_value;
598 SCROLLBAR_X_VDRAG_ORIG_WINDOW_START (instance) = 598 SCROLLBAR_X_VDRAG_ORIG_WINDOW_START (instance) =
599 XINT (Fwindow_start (win)); 599 XINT (Fwindow_start (win));
600 #endif 600 #else
601 stupid_vertical_scrollbar_drag_hack = 0; 601 stupid_vertical_scrollbar_drag_hack = 0;
602 #endif
602 break; 603 break;
603 604
604 case SCROLLBAR_DRAG: 605 case SCROLLBAR_DRAG:
605 { 606 {
606 int value; 607 int value;
855 #elif defined (LWLIB_SCROLLBARS_MOTIF) 856 #elif defined (LWLIB_SCROLLBARS_MOTIF)
856 Fprovide (intern ("motif-scrollbars")); 857 Fprovide (intern ("motif-scrollbars"));
857 #elif defined (LWLIB_SCROLLBARS_ATHENA) 858 #elif defined (LWLIB_SCROLLBARS_ATHENA)
858 Fprovide (intern ("athena-scrollbars")); 859 Fprovide (intern ("athena-scrollbars"));
859 #endif 860 #endif
860 } 861 stupid_vertical_scrollbar_drag_hack = 1;
862 }