changeset 516:8a4db099aa97

[xemacs-hg @ 2001-05-07 14:55:13 by yoshiki] zhaoway's patch "compile --without-scrollbars", <871yqlimt4.fsf@debian.org>
author yoshiki
date Mon, 07 May 2001 14:55:14 +0000
parents 768853052061
children 00e9371a84f3
files src/ChangeLog src/event-stream.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <zw@debian.org>
+
+	* event-stream.c (is_scrollbar_event): Return 0 when XEmacs is
+	compiled without scrollbars.
+
 2001-05-05  Martin Buchholz  <martin@xemacs.org>
 
 	TTY configury portability improvements.
--- 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