summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2003-05-22 13:30:20 +0000
committerDave Love <fx@gnu.org>2003-05-22 13:30:20 +0000
commite226063c2f509ec56a17121fbcbf1156259c549c (patch)
tree93b65dfc3d26d4d53c3233159ed7f59f12d5bf57 /lwlib
parent9afca57c215c6532fc45d098f20f402da2a29803 (diff)
downloademacs-e226063c2f509ec56a17121fbcbf1156259c549c.tar.gz
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.
Diffstat (limited to 'lwlib')
-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 @@
/* The lwlib interface to "xlwmenu" menus.
Copyright (C) 1992 Lucid, Inc.
+ Copyright (C) 1994, 2000, 2001 Free Software Foundation, Inc.
This file is part of the Lucid Widget Library.
@@ -22,7 +23,7 @@ Boston, MA 02111-1307, USA. */
#include <config.h>
#endif
-#include "../src/lisp.h"
+#include "lisp.h"
#include "lwlib-Xlw.h"
#include <X11/StringDefs.h>
@@ -205,20 +206,19 @@ lw_lucid_widget_p (widget)
}
void
+#ifdef PROTOTYPES
+xlw_update_one_widget (widget_instance* instance, Widget widget,
+ widget_value* val, Boolean deep_p)
+#else
xlw_update_one_widget (instance, widget, val, deep_p)
widget_instance* instance;
Widget widget;
widget_value* val;
Boolean deep_p;
+#endif
{
- XlwMenuWidget mw;
Arg al[1];
- if (XtIsShell (widget))
- mw = (XlwMenuWidget)((CompositeWidget)widget)->composite.children [0];
- else
- mw = (XlwMenuWidget)widget;
-
/* This used to use XtVaSetValues, but some old Xt versions
that have a bug in XtVaCreateWidget might have it here too. */
XtSetArg (al[0], XtNmenu, instance->info->val);
@@ -236,9 +236,13 @@ xlw_update_one_value (instance, widget, val)
}
void
+#ifdef PROTOTYPES
+xlw_pop_instance (widget_instance* instance, Boolean up)
+#else
xlw_pop_instance (instance, up)
widget_instance* instance;
Boolean up;
+#endif
{
}