comparison lwlib/lwlib-Xm.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 60c5c2f74650
children 2200ebac5409
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
72 #endif 72 #endif
73 static void xm_internal_update_other_instances (Widget, XtPointer, 73 static void xm_internal_update_other_instances (Widget, XtPointer,
74 XtPointer); 74 XtPointer);
75 /* static void xm_pop_down_callback (Widget, XtPointer, XtPointer); */ 75 /* static void xm_pop_down_callback (Widget, XtPointer, XtPointer); */
76 static void xm_generic_callback (Widget, XtPointer, XtPointer); 76 static void xm_generic_callback (Widget, XtPointer, XtPointer);
77 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
77 static void mark_dead_instance_destroyed (Widget widget, XtPointer closure, 78 static void mark_dead_instance_destroyed (Widget widget, XtPointer closure,
78 XtPointer call_data); 79 XtPointer call_data);
79 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
80 static void xm_nosel_callback (Widget, XtPointer, XtPointer); 80 static void xm_nosel_callback (Widget, XtPointer, XtPointer);
81 #endif 81 #endif
82 #ifdef LWLIB_SCROLLBARS_MOTIF 82 #ifdef LWLIB_SCROLLBARS_MOTIF
83 static void xm_scrollbar_callback (Widget, XtPointer, XtPointer); 83 static void xm_scrollbar_callback (Widget, XtPointer, XtPointer);
84 #endif 84 #endif
337 } 337 }
338 338
339 /* update of buttons */ 339 /* update of buttons */
340 static void 340 static void
341 xm_update_pushbutton (widget_instance* instance, Widget widget, 341 xm_update_pushbutton (widget_instance* instance, Widget widget,
342 widget_value* val) 342 widget_value* UNUSED (val))
343 { 343 {
344 Arg al [1]; 344 Arg al [1];
345 XtSetArg (al [0], XmNalignment, XmALIGNMENT_CENTER); 345 XtSetArg (al [0], XmNalignment, XmALIGNMENT_CENTER);
346 XtSetValues (widget, al, 1); 346 XtSetValues (widget, al, 1);
347 XtRemoveAllCallbacks (widget, XmNactivateCallback); 347 XtRemoveAllCallbacks (widget, XmNactivateCallback);
826 826
827 /* update a motif widget */ 827 /* update a motif widget */
828 828
829 void 829 void
830 xm_update_one_widget (widget_instance* instance, Widget widget, 830 xm_update_one_widget (widget_instance* instance, Widget widget,
831 widget_value* val, Boolean deep_p) 831 widget_value* val,
832 #ifdef LWLIB_MENUBARS_MOTIF
833 Boolean deep_p
834 #else
835 Boolean UNUSED (deep_p)
836 #endif
837 )
832 { 838 {
833 WidgetClass class_; 839 WidgetClass class_;
834 Arg al [20]; 840 Arg al [20];
835 int ac = 0; 841 int ac = 0;
836 842
1871 {NULL, NULL} 1877 {NULL, NULL}
1872 }; 1878 };
1873 1879
1874 /* Destruction of instances */ 1880 /* Destruction of instances */
1875 void 1881 void
1876 xm_destroy_instance (widget_instance* instance) 1882 xm_destroy_instance (
1883 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
1884 widget_instance* instance
1885 #else
1886 widget_instance* UNUSED (instance)
1887 #endif
1888 )
1877 { 1889 {
1878 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF) 1890 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
1879 /* It appears that this is used only for dialog boxes. */ 1891 /* It appears that this is used only for dialog boxes. */
1880 Widget widget = instance->widget; 1892 Widget widget = instance->widget;
1881 /* recycle the dialog boxes */ 1893 /* recycle the dialog boxes */
2221 #endif 2233 #endif
2222 2234
2223 2235
2224 /* set the keyboard focus */ 2236 /* set the keyboard focus */
2225 void 2237 void
2226 xm_set_keyboard_focus (Widget parent, Widget w) 2238 xm_set_keyboard_focus (Widget UNUSED (parent), Widget w)
2227 { 2239 {
2228 XmProcessTraversal (w, XmTRAVERSE_CURRENT); 2240 XmProcessTraversal (w, XmTRAVERSE_CURRENT);
2229 /* At some point we believed that it was necessary to use XtSetKeyboardFocus 2241 /* At some point we believed that it was necessary to use XtSetKeyboardFocus
2230 instead of XmProcessTraversal when using Motif >= 1.2.1, but that's bogus. 2242 instead of XmProcessTraversal when using Motif >= 1.2.1, but that's bogus.
2231 Presumably the problem was elsewhere, and is now gone... 2243 Presumably the problem was elsewhere, and is now gone...