[gnumeric] GUI: Make sure quit dialog has a parent.



commit dea62681ce18732032af646dcfb7064677761073
Author: Morten Welinder <terra gnome org>
Date:   Mon Dec 22 22:18:55 2014 -0500

    GUI: Make sure quit dialog has a parent.

 src/dialogs/ChangeLog     |    3 +++
 src/dialogs/dialog-quit.c |    1 -
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 2d41bab..6cc2b4e 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,8 @@
 2014-12-22  Morten Welinder  <terra gnome org>
 
+       * dialog-quit.c (show_quit_dialog): Don't show the dialog.
+       Especially not before we set a parent.
+
        * dialog-about.c (dialog_about): Don't use an empty layout for
        measurement.
 
diff --git a/src/dialogs/dialog-quit.c b/src/dialogs/dialog-quit.c
index 4a7d6bf..6f8f47e 100644
--- a/src/dialogs/dialog-quit.c
+++ b/src/dialogs/dialog-quit.c
@@ -350,7 +350,6 @@ show_quit_dialog (GList *dirty, WBCGtk *wbcg)
        atk_object_set_role (gtk_widget_get_accessible (GTK_WIDGET (dialog)),
                             ATK_ROLE_ALERT);
 
-       gtk_widget_show_all (GTK_WIDGET (dialog));
        res = go_gtk_dialog_run (dialog, wbcg_toplevel (wbcg));
        switch (res) {
        case GTK_RESPONSE_CANCEL:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]