# HG changeset patch # User yoshiki # Date 989247314 0 # Node ID 8a4db099aa976e61467a1e1338abfe3b2463e4a7 # Parent 7688530520615a40112aecfcb96ab69005bac39a [xemacs-hg @ 2001-05-07 14:55:13 by yoshiki] zhaoway's patch "compile --without-scrollbars", <871yqlimt4.fsf@debian.org> diff -r 768853052061 -r 8a4db099aa97 src/ChangeLog --- a/src/ChangeLog Mon May 07 14:17:28 2001 +0000 +++ b/src/ChangeLog Mon May 07 14:55:14 2001 +0000 @@ -1,3 +1,8 @@ +2000-04-22 zhaoway + + * event-stream.c (is_scrollbar_event): Return 0 when XEmacs is + compiled without scrollbars. + 2001-05-05 Martin Buchholz TTY configury portability improvements. diff -r 768853052061 -r 8a4db099aa97 src/event-stream.c --- a/src/event-stream.c Mon May 07 14:17:28 2001 +0000 +++ b/src/event-stream.c Mon May 07 14:55:14 2001 +0000 @@ -3762,6 +3762,7 @@ static int is_scrollbar_event (Lisp_Object event) { +#ifdef HAVE_SCROLLBARS Lisp_Object fun; if (XEVENT (event)->event_type != misc_user_event) @@ -3782,6 +3783,9 @@ EQ (fun, Qscrollbar_to_left) || EQ (fun, Qscrollbar_to_right) || EQ (fun, Qscrollbar_horizontal_drag)); +#else + return 0; +#endif /* HAVE_SCROLLBARS */ } static void