2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+ * lisp.h (init_window): Add prototype.
+
+ * editfns.c: Include ctype.h.
+
+ * xterm.c: 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'.
+
* xfns.c (Fx_hide_tip): Fix typo in a doc string.
(Fx_file_dialog) [USE_MOTIF]: Remove unused variables
`popup_activated_flag' and `title'.
}
-#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. */
return NULL;
}
-#endif /* USE_X_TOOLKIT && USE_LUCID */
+#endif /* USE_LUCID */
\f
/************************************************************************
{
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)
#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
#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. */
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;