Examine Plots Dialog : Set combo box sensitivity
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 19 Sep 2020 04:21:14 +0000 (06:21 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 19 Sep 2020 04:18:26 +0000 (06:18 +0200)
src/ui/gui/psppire-dialog-action-examine.c

index 4a831b8874905b012d59770d8a424c301da6eb1b..b81a2429d59dc4490b3f1f396eb49aacc62a2163 100644 (file)
@@ -127,6 +127,12 @@ run_plots_dialog (PsppireDialogActionExamine *ed)
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (ed->histogram_button), ed->histogram);
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (ed->npplots_button), ed->npplots);
 
+  g_signal_connect (ed->spread_trans_button, "toggled",
+                    G_CALLBACK (set_sensitivity_from_toggle),
+                    ed->spread_power_combo);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (ed->spread_trans_button), FALSE);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (ed->spread_trans_button), TRUE);
+
   switch (ed->spreadlevel)
     {
     case SPREAD_NONE: