[cheese] window: set the about dialog transient and modal



commit 85754c6deb1bb72267db70378175aa26cc6dafd9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 28 16:06:32 2011 -0400

    window: set the about dialog transient and modal
    
    So that mutter can apply the GNOME 3 modal dialog effect to it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646007

 src/cheese-window.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 797be80..2822964 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -370,6 +370,8 @@ public class Cheese.MainWindow : Gtk.Window
   {
     Gtk.AboutDialog about_dialog;
     about_dialog         = (Gtk.AboutDialog)gtk_builder.get_object ("aboutdialog");
+    about_dialog.set_transient_for (this);
+    about_dialog.set_modal (true);
     about_dialog.version = Config.VERSION;
     about_dialog.run ();
     about_dialog.hide ();



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