X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fruns-dialog.c;h=7fc68131c64d03d58db31e040d3a7820c3c816f6;hb=95d530fc232f438089bb65d2ae6330a9712d2f4f;hp=6f877e827d9aeda97ed3680da5af88b7b9936e3f;hpb=f0eacba971be04bd52971a8a23263d38cde0e661;p=pspp diff --git a/src/ui/gui/runs-dialog.c b/src/ui/gui/runs-dialog.c index 6f877e827d..7fc68131c6 100644 --- a/src/ui/gui/runs-dialog.c +++ b/src/ui/gui/runs-dialog.c @@ -61,15 +61,6 @@ struct runs static char * generate_syntax (const struct runs *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 refresh (struct runs *fd) { @@ -155,7 +146,7 @@ runs_dialog (PsppireDataWindow *dw) NULL); g_signal_connect (fd.cb[CB_CUSTOM], "toggled", - G_CALLBACK (sensitive_if_active), fd.entry); + G_CALLBACK (set_sensitivity_from_toggle), fd.entry); psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog), dialog_state_valid, &fd);