aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-31 05:35:36 +0000
committerRichard M. Stallman1994-01-31 05:35:36 +0000
commit345a94f994fecd2420b1d6485d2661deb5f24cb4 (patch)
tree9b31cb59e411fb834859b40f297c0a38d648fe5d /lwlib
parentab9d3e3c85c284fb4efde1a78ebab37ada89516b (diff)
downloademacs-345a94f994fecd2420b1d6485d2661deb5f24cb4.tar.gz
emacs-345a94f994fecd2420b1d6485d2661deb5f24cb4.zip
*** empty log message ***
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/lwlib-Xlw.c42
-rw-r--r--lwlib/lwlib-utils.c23
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. */
27 27
28 /* Menu callbacks */ 28 /* Menu callbacks */
29static void 29static void
30pre_hook (Widget w, XtPointer client_data, XtPointer call_data) 30pre_hook (w, client_data, call_data)
31 Widget w;
32 XtPointer client_data;
33 XtPointer call_data;
31{ 34{
32 widget_instance* instance = (widget_instance*)client_data; 35 widget_instance* instance = (widget_instance*)client_data;
33 widget_value* val; 36 widget_value* val;
@@ -42,7 +45,10 @@ pre_hook (Widget w, XtPointer client_data, XtPointer call_data)
42} 45}
43 46
44static void 47static void
45pick_hook (Widget w, XtPointer client_data, XtPointer call_data) 48pick_hook (w, client_data, call_data)
49 Widget w;
50 XtPointer client_data;
51 XtPointer call_data;
46{ 52{
47 widget_instance* instance = (widget_instance*)client_data; 53 widget_instance* instance = (widget_instance*)client_data;
48 widget_value* contents_val = (widget_value*)call_data; 54 widget_value* contents_val = (widget_value*)call_data;
@@ -66,7 +72,8 @@ pick_hook (Widget w, XtPointer client_data, XtPointer call_data)
66 72
67 /* creation functions */ 73 /* creation functions */
68static Widget 74static Widget
69xlw_create_menubar (widget_instance* instance) 75xlw_create_menubar (instance)
76 widget_instance* instance;
70{ 77{
71 Widget widget = 78 Widget widget =
72 XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass, 79 XtVaCreateWidget (instance->info->name, xlwMenuWidgetClass,
@@ -79,7 +86,8 @@ xlw_create_menubar (widget_instance* instance)
79} 86}
80 87
81static Widget 88static Widget
82xlw_create_popup_menu (widget_instance* instance) 89xlw_create_popup_menu (instance)
90 widget_instance* instance;
83{ 91{
84 Widget popup_shell = 92 Widget popup_shell =
85 XtCreatePopupShell (instance->info->name, overrideShellWidgetClass, 93 XtCreatePopupShell (instance->info->name, overrideShellWidgetClass,
@@ -106,7 +114,8 @@ xlw_creation_table [] =
106}; 114};
107 115
108Boolean 116Boolean
109lw_lucid_widget_p (Widget widget) 117lw_lucid_widget_p (widget)
118 Widget widget;
110{ 119{
111 WidgetClass the_class = XtClass (widget); 120 WidgetClass the_class = XtClass (widget);
112 if (the_class == xlwMenuWidgetClass) 121 if (the_class == xlwMenuWidgetClass)
@@ -119,8 +128,11 @@ lw_lucid_widget_p (Widget widget)
119} 128}
120 129
121void 130void
122xlw_update_one_widget (widget_instance* instance, Widget widget, 131xlw_update_one_widget (instance, widget, val, deep_p)
123 widget_value* val, Boolean deep_p) 132 widget_instance* instance;
133 Widget widget;
134 widget_value* val;
135 Boolean deep_p;
124{ 136{
125 XlwMenuWidget mw; 137 XlwMenuWidget mw;
126 138
@@ -132,19 +144,24 @@ xlw_update_one_widget (widget_instance* instance, Widget widget,
132} 144}
133 145
134void 146void
135xlw_update_one_value (widget_instance* instance, Widget widget, 147xlw_update_one_value (instance, widget, val)
136 widget_value* val) 148 widget_instance* instance;
149 Widget widget;
150 widget_value* val;
137{ 151{
138 return; 152 return;
139} 153}
140 154
141void 155void
142xlw_pop_instance (widget_instance* instance, Boolean up) 156xlw_pop_instance (instance, up)
157 widget_instance* instance;
158 Boolean up;
143{ 159{
144} 160}
145 161
146void 162void
147xlw_popup_menu (Widget widget) 163xlw_popup_menu (widget)
164 Widget widget;
148{ 165{
149 XButtonPressedEvent dummy; 166 XButtonPressedEvent dummy;
150 XlwMenuWidget mw; 167 XlwMenuWidget mw;
@@ -170,7 +187,8 @@ xlw_popup_menu (Widget widget)
170 187
171 /* Destruction of instances */ 188 /* Destruction of instances */
172void 189void
173xlw_destroy_instance (widget_instance* instance) 190xlw_destroy_instance (instance)
191 widget_instance* instance;
174{ 192{
175 if (instance->widget) 193 if (instance->widget)
176 XtDestroyWidget (instance->widget); 194 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. */
29 29
30/* Redisplay the contents of the widget, without first clearing it. */ 30/* Redisplay the contents of the widget, without first clearing it. */
31void 31void
32XtNoClearRefreshWidget (Widget widget) 32XtNoClearRefreshWidget (widget)
33 Widget widget;
33{ 34{
34 XEvent event; 35 XEvent event;
35 36
@@ -53,7 +54,10 @@ XtNoClearRefreshWidget (Widget widget)
53 * Apply a function to all the subwidgets of a given widget recursively. 54 * Apply a function to all the subwidgets of a given widget recursively.
54*/ 55*/
55void 56void
56XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg) 57XtApplyToWidgets (w, proc, arg)
58 Widget w;
59 XtApplyToWidgetsProc proc;
60 XtPointer arg;
57{ 61{
58 if (XtIsComposite (w)) 62 if (XtIsComposite (w))
59 { 63 {
@@ -83,7 +87,10 @@ XtApplyToWidgets (Widget w, XtApplyToWidgetsProc proc, XtPointer arg)
83 * Stop as soon as the function returns non NULL and returns this as a value. 87 * Stop as soon as the function returns non NULL and returns this as a value.
84 */ 88 */
85void * 89void *
86XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg) 90XtApplyUntilToWidgets (w, proc, arg)
91 Widget w;
92 XtApplyUntilToWidgetsProc proc;
93 XtPointer arg;
87{ 94{
88 void* result; 95 void* result;
89 if (XtIsComposite (w)) 96 if (XtIsComposite (w))
@@ -109,7 +116,9 @@ XtApplyUntilToWidgets (Widget w, XtApplyUntilToWidgetsProc proc, XtPointer arg)
109 * Returns a copy of the list of all children of a composite widget 116 * Returns a copy of the list of all children of a composite widget
110 */ 117 */
111Widget * 118Widget *
112XtCompositeChildren (Widget widget, unsigned int* number) 119XtCompositeChildren (widget, number)
120 Widget widget;
121 unsigned int* number;
113{ 122{
114 CompositeWidget cw = (CompositeWidget)widget; 123 CompositeWidget cw = (CompositeWidget)widget;
115 Widget* result; 124 Widget* result;
@@ -130,13 +139,15 @@ XtCompositeChildren (Widget widget, unsigned int* number)
130} 139}
131 140
132Boolean 141Boolean
133XtWidgetBeingDestroyedP (Widget widget) 142XtWidgetBeingDestroyedP (widget)
143 Widget widget;
134{ 144{
135 return widget->core.being_destroyed; 145 return widget->core.being_destroyed;
136} 146}
137 147
138void 148void
139XtSafelyDestroyWidget (Widget widget) 149XtSafelyDestroyWidget (widget)
150 Widget widget;
140{ 151{
141#if 0 152#if 0
142 153