[sushi/gnome-3-4] mainWindow: set the DIALOG GdkWindowTypeHint



commit 7839e1a9dc62a57fda12c85c35d9dbd3d0fffe63
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 11 13:22:08 2012 -0400

    mainWindow: set the DIALOG GdkWindowTypeHint
    
    We don't want to be snappable/maximizable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660602

 src/js/ui/mainWindow.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 0ac109c..0009da8 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -89,6 +89,10 @@ MainWindow.prototype = {
 
         this._gtkWindow.connect("delete-event",
                                 Lang.bind(this, this._onWindowDeleteEvent));
+        this._gtkWindow.connect("realize", Lang.bind(this,
+            function() {
+                this._gtkWindow.get_window().set_type_hint(Gdk.WindowTypeHint.DIALOG);
+            }));
     },
 
     _createClutterEmbed : function() {



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