Aggregate Dialog: use global callback
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Nov 2012 20:33:20 +0000 (21:33 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 25 Nov 2012 06:44:07 +0000 (07:44 +0100)
src/ui/gui/aggregate-dialog.c

index 16ae1ce0cb08a5377ff72e7d5c4071b5293b7f03..013e1bee76538549fa551661cd07dce91ec9262f 100644 (file)
@@ -93,15 +93,6 @@ struct aggregate
 static char * generate_syntax (const struct aggregate *rd);
 
 
-/* Makes widget W's sensitivity follow the active state of TOGGLE */
-static void
-sensitive_if_active (GtkToggleButton *toggle, GtkWidget *w)
-{
-  gboolean active = gtk_toggle_button_get_active (toggle);
-
-  gtk_widget_set_sensitive (w, active);
-}
-
 static void update_arguments (struct aggregate *agg);
 
 
@@ -581,7 +572,7 @@ aggregate_dialog (PsppireDataWindow *dw)
                                      dialog_state_valid, &fd);
 
   g_signal_connect (fd.filename_radiobutton, "toggled",
-                   G_CALLBACK (sensitive_if_active), fd.filename_box );
+                   G_CALLBACK (set_sensitivity_from_toggle), fd.filename_box );
 
   g_signal_connect_swapped (fd.filename_button, "clicked",
                    G_CALLBACK (choose_filename), &fd);