Mercurial > emacs
changeset 39671:45d46b88cdd1
USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
(xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
(x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused variable `sb'.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Mon, 08 Oct 2001 06:31:02 +0000 |
parents | b795caab9fca |
children | b7442cca6150 |
files | src/xterm.c |
diffstat | 1 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Mon Oct 08 06:13:07 2001 +0000 +++ b/src/xterm.c Mon Oct 08 06:31:02 2001 +0000 @@ -8252,7 +8252,7 @@ } -#if defined USE_X_TOOLKIT && defined USE_LUCID +#if defined USE_LUCID /* Return the Lucid menu bar WINDOW is part of. Return null if WINDOW is not part of a menu bar. */ @@ -8277,7 +8277,7 @@ return NULL; } -#endif /* USE_X_TOOLKIT && USE_LUCID */ +#endif /* USE_LUCID */ /************************************************************************ @@ -8484,7 +8484,6 @@ { struct scroll_bar *bar = (struct scroll_bar *) client_data; XmScrollBarCallbackStruct *cs = (XmScrollBarCallbackStruct *) call_data; - double percent; int part = -1, whole = 0, portion = 0; switch (cs->reason) @@ -8870,7 +8869,6 @@ #ifdef USE_MOTIF { int size, value; - XmScrollBarWidget sb; /* Slider size. Must be in the range [1 .. MAX - MIN] where MAX is the scroll bar's maximum and MIN is the scroll bar's minimum @@ -10293,7 +10291,7 @@ #ifndef USE_TOOLKIT_SCROLL_BARS struct scroll_bar *bar; #endif -#if defined USE_X_TOOLKIT && defined USE_LUCID +#if defined USE_LUCID /* Submenus of the Lucid menu bar aren't widgets themselves, so there's no way to dispatch events to them. Recognize this case separately. */ @@ -10303,8 +10301,8 @@ if (widget) xlwmenu_redisplay (widget); } -#endif /* USE_X_TOOLKIT && USE_LUCID */ - +#endif /* USE_LUCID */ + #ifdef USE_TOOLKIT_SCROLL_BARS /* Dispatch event to the widget. */ goto OTHER;