diff src/scrollbar.c @ 1295:064ef1d07d63

[xemacs-hg @ 2003-02-14 07:54:27 by ben] no specifier crashes under Windows, please scrollbar.c: Don't generate fallbacks for TTY's when not HAVE_TTY.
author ben
date Fri, 14 Feb 2003 07:54:29 +0000
parents 5d97d6110cd9
children b531bf8658e9
line wrap: on
line diff
--- a/src/scrollbar.c	Fri Feb 14 07:38:30 2003 +0000
+++ b/src/scrollbar.c	Fri Feb 14 07:54:29 2003 +0000
@@ -976,8 +976,13 @@
   Vscrollbar_width = make_magic_specifier (Qnatnum);
   set_specifier_fallback
     (Vscrollbar_width,
+#ifdef HAVE_TTY
      list2 (Fcons (list1 (Qtty), make_int (0)),
-	    Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_WIDTH))));
+	    Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_WIDTH)))
+#else
+     list1 (Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_WIDTH)))
+#endif
+     );
   set_specifier_caching (Vscrollbar_width,
 			 offsetof (struct window, scrollbar_width),
 			 vertical_scrollbar_changed_in_window,
@@ -991,8 +996,13 @@
   Vscrollbar_height = make_magic_specifier (Qnatnum);
   set_specifier_fallback
     (Vscrollbar_height,
+#ifdef HAVE_TTY
      list2 (Fcons (list1 (Qtty), make_int (0)),
-	    Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_HEIGHT))));
+	    Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_HEIGHT)))
+#else
+     list1 (Fcons (Qnil, make_int (DEFAULT_SCROLLBAR_HEIGHT)))
+#endif
+     );
   set_specifier_caching (Vscrollbar_height,
 			 offsetof (struct window, scrollbar_height),
 			 some_window_value_changed,