[five-or-more] Show the preferences dialog in front of the main window https://bugzilla.gnome.org/show_bug.cgi?id=7



commit b5e1ab08a0ffc6978be6b42b2717fd68357a9bc6
Author: Robert Roth <robert roth off gmail com>
Date:   Thu Aug 28 17:01:28 2014 +0300

    Show the preferences dialog in front of the main window
    https://bugzilla.gnome.org/show_bug.cgi?id=735543

 src/five-or-more.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 720067f..e9f6f6e 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -1412,10 +1412,9 @@ game_props_callback (GSimpleAction *action,
     g_object_unref (G_OBJECT (builder_preferences));
 
     pref_dialog_done = TRUE;
+    gtk_window_set_transient_for (GTK_WINDOW (pref_dialog), GTK_WINDOW (app));
   }
-
-  gtk_window_set_transient_for (GTK_WINDOW (pref_dialog), GTK_WINDOW (app));
-  gtk_window_present (GTK_WINDOW (pref_dialog));
+  gtk_dialog_run (GTK_DIALOG (pref_dialog));
 }
 
 void


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