X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.h;h=d32082477d80dee20ce4f857c2b767e5f2879e00;hb=469b69a6df92b30f18a4a5c7262d9290601a0a88;hp=328904acfc9643fbf669cf6cd0f2f3451166d9c1;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/ui/gui/dialog-common.h b/src/ui/gui/dialog-common.h index 328904acfc..d32082477d 100644 --- a/src/ui/gui/dialog-common.h +++ b/src/ui/gui/dialog-common.h @@ -54,5 +54,13 @@ gboolean homogeneous_types (GtkWidget *source, GtkWidget *dest); */ gboolean numeric_only (GtkWidget *source, GtkWidget *dest); +/* + A pair of functions intended to be used as callbacks for the "toggled" signal + of a GtkToggleButton widget. They make the sensitivity of W follow the status + of the togglebutton. +*/ +void set_sensitivity_from_toggle (GtkToggleButton *togglebutton, GtkWidget *w); +void set_sensitivity_from_toggle_invert (GtkToggleButton *togglebutton, GtkWidget *w); + #endif