aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPavel Janík2001-10-08 06:37:59 +0000
committerPavel Janík2001-10-08 06:37:59 +0000
commit01f67d2c303dcd8fd85a7f4359561a4d61249f7a (patch)
treec240bd1e78a47a1fb783f77d1a565d0072c512a0 /src/xterm.c
parenta101302b066e5480b5b432ad660eb1db701b9627 (diff)
downloademacs-01f67d2c303dcd8fd85a7f4359561a4d61249f7a.tar.gz
emacs-01f67d2c303dcd8fd85a7f4359561a4d61249f7a.zip
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'.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b48b5187062..702a1fd4c3a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8252,7 +8252,7 @@ x_window_to_scroll_bar (window_id)
8252} 8252}
8253 8253
8254 8254
8255#if defined USE_X_TOOLKIT && defined USE_LUCID 8255#if defined USE_LUCID
8256 8256
8257/* Return the Lucid menu bar WINDOW is part of. Return null 8257/* Return the Lucid menu bar WINDOW is part of. Return null
8258 if WINDOW is not part of a menu bar. */ 8258 if WINDOW is not part of a menu bar. */
@@ -8277,7 +8277,7 @@ x_window_to_menu_bar (window)
8277 return NULL; 8277 return NULL;
8278} 8278}
8279 8279
8280#endif /* USE_X_TOOLKIT && USE_LUCID */ 8280#endif /* USE_LUCID */
8281 8281
8282 8282
8283/************************************************************************ 8283/************************************************************************
@@ -8484,7 +8484,6 @@ xm_scroll_callback (widget, client_data, call_data)
8484{ 8484{
8485 struct scroll_bar *bar = (struct scroll_bar *) client_data; 8485 struct scroll_bar *bar = (struct scroll_bar *) client_data;
8486 XmScrollBarCallbackStruct *cs = (XmScrollBarCallbackStruct *) call_data; 8486 XmScrollBarCallbackStruct *cs = (XmScrollBarCallbackStruct *) call_data;
8487 double percent;
8488 int part = -1, whole = 0, portion = 0; 8487 int part = -1, whole = 0, portion = 0;
8489 8488
8490 switch (cs->reason) 8489 switch (cs->reason)
@@ -8870,7 +8869,6 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole)
8870#ifdef USE_MOTIF 8869#ifdef USE_MOTIF
8871 { 8870 {
8872 int size, value; 8871 int size, value;
8873 XmScrollBarWidget sb;
8874 8872
8875 /* Slider size. Must be in the range [1 .. MAX - MIN] where MAX 8873 /* Slider size. Must be in the range [1 .. MAX - MIN] where MAX
8876 is the scroll bar's maximum and MIN is the scroll bar's minimum 8874 is the scroll bar's maximum and MIN is the scroll bar's minimum
@@ -10293,7 +10291,7 @@ XTread_socket (sd, bufp, numchars, expected)
10293#ifndef USE_TOOLKIT_SCROLL_BARS 10291#ifndef USE_TOOLKIT_SCROLL_BARS
10294 struct scroll_bar *bar; 10292 struct scroll_bar *bar;
10295#endif 10293#endif
10296#if defined USE_X_TOOLKIT && defined USE_LUCID 10294#if defined USE_LUCID
10297 /* Submenus of the Lucid menu bar aren't widgets 10295 /* Submenus of the Lucid menu bar aren't widgets
10298 themselves, so there's no way to dispatch events 10296 themselves, so there's no way to dispatch events
10299 to them. Recognize this case separately. */ 10297 to them. Recognize this case separately. */
@@ -10303,8 +10301,8 @@ XTread_socket (sd, bufp, numchars, expected)
10303 if (widget) 10301 if (widget)
10304 xlwmenu_redisplay (widget); 10302 xlwmenu_redisplay (widget);
10305 } 10303 }
10306#endif /* USE_X_TOOLKIT && USE_LUCID */ 10304#endif /* USE_LUCID */
10307 10305
10308#ifdef USE_TOOLKIT_SCROLL_BARS 10306#ifdef USE_TOOLKIT_SCROLL_BARS
10309 /* Dispatch event to the widget. */ 10307 /* Dispatch event to the widget. */
10310 goto OTHER; 10308 goto OTHER;