aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2003-05-22 13:30:20 +0000
committerDave Love2003-05-22 13:30:20 +0000
commite226063c2f509ec56a17121fbcbf1156259c549c (patch)
tree93b65dfc3d26d4d53c3233159ed7f59f12d5bf57
parent9afca57c215c6532fc45d098f20f402da2a29803 (diff)
downloademacs-e226063c2f509ec56a17121fbcbf1156259c549c.tar.gz
emacs-e226063c2f509ec56a17121fbcbf1156259c549c.zip
Include lisp.h, not ../src/lisp.h.
(lw_lucid_widget_p): Remove unused `mw'. (xlw_update_one_widget, xlw_pop_instance) [PROTOTYPES]: Provide ISO C arglists.
-rw-r--r--lwlib/lwlib-Xlw.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c
index cc1e8f7890f..47939144bad 100644
--- a/lwlib/lwlib-Xlw.c
+++ b/lwlib/lwlib-Xlw.c
@@ -1,5 +1,6 @@
1/* The lwlib interface to "xlwmenu" menus. 1/* The lwlib interface to "xlwmenu" menus.
2 Copyright (C) 1992 Lucid, Inc. 2 Copyright (C) 1992 Lucid, Inc.
3 Copyright (C) 1994, 2000, 2001 Free Software Foundation, Inc.
3 4
4This file is part of the Lucid Widget Library. 5This file is part of the Lucid Widget Library.
5 6
@@ -22,7 +23,7 @@ Boston, MA 02111-1307, USA. */
22#include <config.h> 23#include <config.h>
23#endif 24#endif
24 25
25#include "../src/lisp.h" 26#include "lisp.h"
26 27
27#include "lwlib-Xlw.h" 28#include "lwlib-Xlw.h"
28#include <X11/StringDefs.h> 29#include <X11/StringDefs.h>
@@ -205,20 +206,19 @@ lw_lucid_widget_p (widget)
205} 206}
206 207
207void 208void
209#ifdef PROTOTYPES
210xlw_update_one_widget (widget_instance* instance, Widget widget,
211 widget_value* val, Boolean deep_p)
212#else
208xlw_update_one_widget (instance, widget, val, deep_p) 213xlw_update_one_widget (instance, widget, val, deep_p)
209 widget_instance* instance; 214 widget_instance* instance;
210 Widget widget; 215 Widget widget;
211 widget_value* val; 216 widget_value* val;
212 Boolean deep_p; 217 Boolean deep_p;
218#endif
213{ 219{
214 XlwMenuWidget mw;
215 Arg al[1]; 220 Arg al[1];
216 221
217 if (XtIsShell (widget))
218 mw = (XlwMenuWidget)((CompositeWidget)widget)->composite.children [0];
219 else
220 mw = (XlwMenuWidget)widget;
221
222 /* This used to use XtVaSetValues, but some old Xt versions 222 /* This used to use XtVaSetValues, but some old Xt versions
223 that have a bug in XtVaCreateWidget might have it here too. */ 223 that have a bug in XtVaCreateWidget might have it here too. */
224 XtSetArg (al[0], XtNmenu, instance->info->val); 224 XtSetArg (al[0], XtNmenu, instance->info->val);
@@ -236,9 +236,13 @@ xlw_update_one_value (instance, widget, val)
236} 236}
237 237
238void 238void
239#ifdef PROTOTYPES
240xlw_pop_instance (widget_instance* instance, Boolean up)
241#else
239xlw_pop_instance (instance, up) 242xlw_pop_instance (instance, up)
240 widget_instance* instance; 243 widget_instance* instance;
241 Boolean up; 244 Boolean up;
245#endif
242{ 246{
243} 247}
244 248