Mercurial > hg > xemacs-beta
changeset 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 | 8c5cf108f035 |
children | 87084e8445a7 |
files | src/ChangeLog src/scrollbar.c |
diffstat | 2 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Feb 14 07:38:30 2003 +0000 +++ b/src/ChangeLog Fri Feb 14 07:54:29 2003 +0000 @@ -1,3 +1,8 @@ +2003-02-14 Ben Wing <ben@xemacs.org> + + * scrollbar.c (specifier_vars_of_scrollbar): + Don't generate fallbacks for TTY's when not HAVE_TTY. + 2003-02-13 Martin Buchholz <martin@xemacs.org> Make XEmacs redisplay 10 times faster.
--- 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,