# HG changeset patch # User Dave Love # Date 1053610220 0 # Node ID 45a8df25478817f319b5f4499e8d19162a6073c7 # Parent 45b44457e685657a1c0fe7360a09fec43f77ec41 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. diff -r 45b44457e685 -r 45a8df254788 lwlib/lwlib-Xlw.c --- a/lwlib/lwlib-Xlw.c Thu May 22 13:19:53 2003 +0000 +++ b/lwlib/lwlib-Xlw.c Thu May 22 13:30:20 2003 +0000 @@ -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 @@ #include #endif -#include "../src/lisp.h" +#include "lisp.h" #include "lwlib-Xlw.h" #include @@ -205,20 +206,19 @@ } 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 @@ } void +#ifdef PROTOTYPES +xlw_pop_instance (widget_instance* instance, Boolean up) +#else xlw_pop_instance (instance, up) widget_instance* instance; Boolean up; +#endif { }