Mercurial > emacs
changeset 34066:2482c17f546e
Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
#ifndef instead of using #if.
(XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
USE_TOOLKIT_SCROLL_BARS is defined.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 30 Nov 2000 19:51:18 +0000 |
parents | 2b2f4125bdef |
children | c6b6e1f13f5d |
files | src/xterm.c |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Thu Nov 30 19:12:41 2000 +0000 +++ b/src/xterm.c Thu Nov 30 19:51:18 2000 +0000 @@ -7650,7 +7650,7 @@ Toolkit scroll bars ************************************************************************/ -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS static void x_scroll_bar_to_input_event P_ ((XEvent *, struct input_event *)); static void x_send_scroll_bar_event P_ ((Lisp_Object, int, int, int)); @@ -8326,7 +8326,7 @@ BLOCK_INPUT; -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS x_create_toolkit_scroll_bar (f, bar); #else /* not USE_TOOLKIT_SCROLL_BARS */ { @@ -8386,7 +8386,7 @@ XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); /* Map the window/widget. */ -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS { Widget scroll_bar = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); XtConfigureWidget (scroll_bar, @@ -8531,7 +8531,7 @@ struct frame *f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window))); BLOCK_INPUT; -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS XtDestroyWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar)); #else XDestroyWindow (FRAME_X_DISPLAY (f), SCROLL_BAR_X_WINDOW (bar)); @@ -8676,7 +8676,7 @@ UNBLOCK_INPUT; } -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole); #else /* not USE_TOOLKIT_SCROLL_BARS */ /* Set the scroll bar's current state, unless we're currently being @@ -9729,7 +9729,7 @@ case KeyPress: f = x_any_window_to_frame (dpyinfo, event.xkey.window); -#ifdef USE_MOTIF +#if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS /* I couldn't find a way to prevent LessTif scroll bars from consuming key events. */ if (f == 0) @@ -9742,7 +9742,7 @@ f = x_any_window_to_frame (dpyinfo, XtWindow (widget)); } } -#endif /* USE_MOTIF */ +#endif /* USE_MOTIF and USE_TOOLKIT_SCROLL_BARS */ if (f != 0) { @@ -13917,7 +13917,7 @@ } #endif -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS xaw3d_arrow_scroll = False; xaw3d_pick_top = True; #endif @@ -13972,7 +13972,7 @@ DEFVAR_BOOL ("x-toolkit-scroll-bars-p", &x_toolkit_scroll_bars_p, "If not nil, Emacs uses toolkit scroll bars."); -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS x_toolkit_scroll_bars_p = 1; #else x_toolkit_scroll_bars_p = 0;