X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Foptions-dialog.c;h=c50048060212a0c9e847dfd88414966a4d98e5e3;hb=c1f04750c4430bf3e7f0630842f879ee695b947d;hp=e2c28940398bdb4b2be67f32898ed849146cc3c6;hpb=52e144652645cab108fb2db0a970f1ace2cbf2ea;p=pspp diff --git a/src/ui/gui/options-dialog.c b/src/ui/gui/options-dialog.c index e2c2894039..c500480602 100644 --- a/src/ui/gui/options-dialog.c +++ b/src/ui/gui/options-dialog.c @@ -90,7 +90,7 @@ options_dialog (PsppireDataWindow *de) fd.maximize = get_widget_assert (fd.xml, "checkbutton-maximize"); fd.alert = get_widget_assert (fd.xml, "checkbutton-alert"); fd.raise = get_widget_assert (fd.xml, "checkbutton-raise"); - + gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); fd.conf = psppire_conf_new (); @@ -129,20 +129,20 @@ options_dialog (PsppireDataWindow *de) &status)) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd.maximize), status); } - + { gboolean status = true; psppire_conf_get_boolean (fd.conf, "OutputWindowAction", "alert", &status); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd.alert), status); } - + { gboolean status; if (psppire_conf_get_boolean (fd.conf, "OutputWindowAction", "raise", &status)) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fd.raise), status); } - + const int result = psppire_dialog_run (PSPPIRE_DIALOG (dialog)); if (result == GTK_RESPONSE_OK) @@ -165,7 +165,7 @@ options_dialog (PsppireDataWindow *de) { sort_order = PSPP_OPTIONS_VAR_ORDER_UNSORTED; } - + psppire_conf_set_enum (fd.conf, "VariableLists", "sort-order", PSPP_TYPE_OPTIONS_VAR_ORDER, @@ -174,7 +174,7 @@ options_dialog (PsppireDataWindow *de) psppire_conf_set_boolean (fd.conf, "OutputWindowAction", "maximize", gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (fd.maximize))); - + psppire_conf_set_boolean (fd.conf, "OutputWindowAction", "raise", gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (fd.raise)));