From: Ben Pfaff Date: Sun, 19 Aug 2012 18:36:42 +0000 (-0700) Subject: val-labs-dialog, var-type-dialog: Make these dialogs modal. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de0368d4ec642662fdff99aefc5fbf19ce5afc9;p=pspp val-labs-dialog, var-type-dialog: Make these dialogs modal. I missed this in the initial conversion. --- diff --git a/src/ui/gui/val-labs-dialog.c b/src/ui/gui/val-labs-dialog.c index 094a422af0..0d7f41307b 100644 --- a/src/ui/gui/val-labs-dialog.c +++ b/src/ui/gui/val-labs-dialog.c @@ -156,6 +156,7 @@ psppire_val_labs_dialog_run (GtkWindow *parent_window, dialog = psppire_val_labs_dialog_new (var); gtk_window_set_transient_for (GTK_WINDOW (dialog), parent_window); + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_widget_show (GTK_WIDGET (dialog)); labs = (psppire_dialog_run (PSPPIRE_DIALOG (dialog)) == GTK_RESPONSE_OK diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index 23ad0dce4b..8ca7b1c92d 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -207,6 +207,7 @@ psppire_var_type_dialog_run (GtkWindow *parent_window, dialog = psppire_var_type_dialog_new (format); gtk_window_set_transient_for (GTK_WINDOW (dialog), parent_window); + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_widget_show (GTK_WIDGET (dialog)); if (psppire_dialog_run (PSPPIRE_DIALOG (dialog)) == GTK_RESPONSE_OK)