comparison lwlib/lwlib-Xm.c @ 2311:2200ebac5409

[xemacs-hg @ 2004-09-27 18:39:11 by james] Mark more unused parameters.
author james
date Mon, 27 Sep 2004 18:39:23 +0000
parents 04bc9d2f42c7
children bbce7f6de2d6
comparison
equal deleted inserted replaced
2310:f6ea7b737c3d 2311:2200ebac5409
202 202
203 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF) 203 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
204 204
205 /* update the label of anything subclass of a label */ 205 /* update the label of anything subclass of a label */
206 static void 206 static void
207 xm_update_label (widget_instance* instance, Widget widget, widget_value* val) 207 xm_update_label (widget_instance* UNUSED (instance), Widget widget,
208 widget_value* val)
208 { 209 {
209 XmString built_string = NULL; 210 XmString built_string = NULL;
210 XmString key_string = NULL; 211 XmString key_string = NULL;
211 XmString val_string = NULL; 212 XmString val_string = NULL;
212 XmString name_string = NULL; 213 XmString name_string = NULL;
348 XtAddCallback (widget, XmNactivateCallback, xm_generic_callback, instance); 349 XtAddCallback (widget, XmNactivateCallback, xm_generic_callback, instance);
349 } 350 }
350 351
351 #ifdef LWLIB_WIDGETS_MOTIF 352 #ifdef LWLIB_WIDGETS_MOTIF
352 static void 353 static void
353 xm_update_progress (widget_instance* instance, Widget scale, 354 xm_update_progress (widget_instance* UNUSED (instance), Widget scale,
354 widget_value* val) 355 widget_value* val)
355 { 356 {
356 Arg al[20]; 357 Arg al[20];
357 int ac = 0; 358 int ac = 0;
358 Dimension height = 0; 359 Dimension height = 0;
359 Dimension width = 0; 360 Dimension width = 0;
1038 This is used from the XmNdefaultAction callback of the List widgets to 1039 This is used from the XmNdefaultAction callback of the List widgets to
1039 have a double-click put down a dialog box like the button would do. 1040 have a double-click put down a dialog box like the button would do.
1040 I could not find a way to do that with accelerators. 1041 I could not find a way to do that with accelerators.
1041 */ 1042 */
1042 static void 1043 static void
1043 activate_button (Widget widget, XtPointer closure, XtPointer call_data) 1044 activate_button (Widget UNUSED (widget), XtPointer closure,
1045 XtPointer UNUSED (call_data))
1044 { 1046 {
1045 Widget button = (Widget)closure; 1047 Widget button = (Widget)closure;
1046 XtCallCallbacks (button, XmNactivateCallback, NULL); 1048 XtCallCallbacks (button, XmNactivateCallback, NULL);
1047 } 1049 }
1048 1050
1096 static char disable_dnd_trans[] = "<Btn2Down>: "; 1098 static char disable_dnd_trans[] = "<Btn2Down>: ";
1097 #endif /* DND_KLUDGE */ 1099 #endif /* DND_KLUDGE */
1098 1100
1099 1101
1100 static Widget 1102 static Widget
1101 make_dialog (char* name, Widget parent, Boolean pop_up_p, 1103 make_dialog (char* UNUSED (name), Widget parent, Boolean pop_up_p,
1102 const char* shell_title, const char* icon_name, 1104 const char* shell_title, const char* icon_name,
1103 Boolean text_input_slot, Boolean radio_box, Boolean list, 1105 Boolean text_input_slot, Boolean radio_box, Boolean list,
1104 int left_buttons, int right_buttons) 1106 int left_buttons, int right_buttons)
1105 { 1107 {
1106 Widget result; 1108 Widget result;
2207 } 2209 }
2208 #endif /* LWLIB_SCROLLBARS_MOTIF */ 2210 #endif /* LWLIB_SCROLLBARS_MOTIF */
2209 2211
2210 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF) 2212 #if defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_WIDGETS_MOTIF)
2211 static void 2213 static void
2212 mark_dead_instance_destroyed (Widget widget, XtPointer closure, 2214 mark_dead_instance_destroyed (Widget UNUSED (widget), XtPointer closure,
2213 XtPointer call_data) 2215 XtPointer UNUSED (call_data))
2214 { 2216 {
2215 destroyed_instance* instance = (destroyed_instance*)closure; 2217 destroyed_instance* instance = (destroyed_instance*)closure;
2216 instance->widget = NULL; 2218 instance->widget = NULL;
2217 } 2219 }
2218 2220
2219 static void 2221 static void
2220 xm_nosel_callback (Widget widget, XtPointer closure, XtPointer call_data) 2222 xm_nosel_callback (Widget widget, XtPointer closure,
2223 XtPointer UNUSED (call_data))
2221 { 2224 {
2222 /* This callback is only called when a dialog box is dismissed with the wm's 2225 /* This callback is only called when a dialog box is dismissed with the wm's
2223 destroy button (WM_DELETE_WINDOW.) We want the dialog box to be destroyed 2226 destroy button (WM_DELETE_WINDOW.) We want the dialog box to be destroyed
2224 in that case, not just unmapped, so that it releases its keyboard grabs. 2227 in that case, not just unmapped, so that it releases its keyboard grabs.
2225 But there are problems with running our callbacks while the widget is in 2228 But there are problems with running our callbacks while the widget is in