diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-01-31 05:35:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-01-31 05:35:36 +0000 |
commit | cb17e61af2a7b041420a9c79aac1369d0c7fba19 (patch) | |
tree | 19bf0cbc8e4efa58817ee3a9d0d118b8a2a33594 /lwlib | |
parent | 96962856140cc477427131aa5af42601175fc0d9 (diff) | |
download | emacs-cb17e61af2a7b041420a9c79aac1369d0c7fba19.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/lwlib-Xlw.c | 42 | ||||
-rw-r--r-- | lwlib/lwlib-utils.c | 23 |
2 files changed, 47 insertions, 18 deletions
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c index 1c56b8eb3a3..893833efca3 100644 --- a/lwlib/lwlib-Xlw.c +++ b/lwlib/lwlib-Xlw.c @@ -27,7 +27,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Menu callbacks */ static void -pre_hook (Widget w, XtPointer client_data, XtPointer call_data) +pre_hook (w, client_data, call_data) + Widget w; + XtPointer client_data; + XtPointer call_data; { widget_instance* instance = (widget_instance*)client_data; widget_value* val; @@ -42,7 +45,10 @@ pre_hook (Widget w, XtPointer client_data, XtPointer call_data) } static void -pick_hook (Widget w, XtPointer client_data, XtPointer call_data) +pick_hook (w, client_data, call_data) + Widget w; + XtPointer client_data; + XtPointer call_data; { widget_instance* instance = (widget_instance*)client_data; widget_value* contents_val = (widget_value*)call_data; @@ -66,7 +72,8 @@ pick_hook (Widget w, XtPointer client_data, XtPointer call_data) /* creation functions */ static Widget -xlw_create_menubar (widget_instance* instance) +xlw_create_menubar (instance) + widget_instance* instance; { Widget widget = XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass, @@ -79,7 +86,8 @@ xlw_create_menubar (widget_instance* instance) } static Widget -xlw_create_popup_menu (widget_instance* instance) +xlw_create_popup_menu (instance) + widget_instance* instance; { Widget popup_shell = XtCreatePopupShell (instance->info->name, overrideShellWidgetClass, @@ -106,7 +114,8 @@ xlw_creation_table [] = }; Boolean -lw_lucid_widget_p (Widget widget) +lw_lucid_widget_p (widget) + Widget widget; { WidgetClass the_class = XtClass (widget); if (the_class == xlwMenuWidgetClass) @@ -119,8 +128,11 @@ lw_lucid_widget_p (Widget widget) } void -xlw_update_one_widget (widget_instance* instance, Widget widget, - widget_value* val, Boolean deep_p) +xlw_update_one_widget (instance, widget, val, deep_p) + widget_instance* instance; + Widget widget; + widget_value* val; + Boolean deep_p; { XlwMenuWidget mw; @@ -132,19 +144,24 @@ xlw_update_one_widget (widget_instance* instance, Widget widget, } void -xlw_update_one_value (widget_instance* instance, Widget widget, - widget_value* val) +xlw_update_one_value (instance, widget, val) + widget_instance* instance; + Widget widget; + widget_value* val; { return; } void -xlw_pop_instance (widget_instance* instance, Boolean up) +xlw_pop_instance (instance, up) + widget_instance* instance; + Boolean up; { } void -xlw_popup_menu (Widget widget) +xlw_popup_menu (widget) + Widget widget; { XButtonPressedEvent dummy; XlwMenuWidget mw; @@ -170,7 +187,8 @@ xlw_popup_menu (Widget widget) /* Destruction of instances */ void -xlw_destroy_instance (widget_instance* instance) +xlw_destroy_instance (instance) + widget_instance* instance; { if (instance->widget) XtDestroyWidget (instance->widget); diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index 97952afce55..c6899b57af7 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c @@ -29,7 +29,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Redisplay the contents of the widget, without first clearing it. */ void -XtNoClearRefreshWidget (Widget widget) +XtNoClearRefreshWidget (widget) + Widget widget; { XEvent event; @@ -53,7 +54,10 @@ XtNoClearRefreshWidget (Widget widget) * Apply a function to all the subwidgets of a given widget recursively. */ void -XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg) +XtApplyToWidgets (w, proc, arg) + Widget w; + XtApplyToWidgetsProc proc; + XtPointer arg; { if (XtIsComposite (w)) { @@ -83,7 +87,10 @@ XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg) * Stop as soon as the function returns non NULL and returns this as a value. */ void * -XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg) +XtApplyUntilToWidgets (w, proc, arg) + Widget w; + XtApplyUntilToWidgetsProc proc; + XtPointer arg; { void* result; if (XtIsComposite (w)) @@ -109,7 +116,9 @@ XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg) * Returns a copy of the list of all children of a composite widget */ Widget * -XtCompositeChildren (Widget widget, unsigned int* number) +XtCompositeChildren (widget, number) + Widget widget; + unsigned int* number; { CompositeWidget cw = (CompositeWidget)widget; Widget* result; @@ -130,13 +139,15 @@ XtCompositeChildren (Widget widget, unsigned int* number) } Boolean -XtWidgetBeingDestroyedP (Widget widget) +XtWidgetBeingDestroyedP (widget) + Widget widget; { return widget->core.being_destroyed; } void -XtSafelyDestroyWidget (Widget widget) +XtSafelyDestroyWidget (widget) + Widget widget; { #if 0 |