[sushi/gnome-3-4] mainWindow: set the DIALOG GdkWindowTypeHint
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/gnome-3-4] mainWindow: set the DIALOG GdkWindowTypeHint
- Date: Wed, 11 Apr 2012 17:22:48 +0000 (UTC)
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]