[five-or-more/vala-port] Preferences dialog should be transient for the main window



commit cd5230bee7055fec12e836f61cf3317f2490ea3a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Aug 18 10:29:23 2013 -0500

    Preferences dialog should be transient for the main window
    
    Prevents it from showing up as a separate window in GNOME Shell.

 src/application.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 1d61700..9984078 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -117,6 +117,7 @@ namespace FiveOrMore
             stdout.printf ("preferences\n");
             if (preferences_dialog == null)
                 preferences_dialog = (Gtk.Dialog) builder.get_object ("preferences_dialog");
+            preferences_dialog.transient_for = window;
             
             preferences_dialog.run();
             preferences_dialog.destroy ();


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