[sushi/gnome-3-4] main-window: use GdkWMFunction to avoid maximization/snapping
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/gnome-3-4] main-window: use GdkWMFunction to avoid maximization/snapping
- Date: Wed, 11 Apr 2012 20:52:07 +0000 (UTC)
commit a7327d0f023f5486e48f67328104fc3258b1683f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 11 16:51:27 2012 -0400
main-window: use GdkWMFunction to avoid maximization/snapping
Apparently dialog windows can't fullscreen.
src/js/ui/mainWindow.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index cb76649..46de067 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -91,7 +91,10 @@ MainWindow.prototype = {
Lang.bind(this, this._onWindowDeleteEvent));
this._gtkWindow.connect("realize", Lang.bind(this,
function() {
- this._gtkWindow.get_window().set_type_hint(Gdk.WindowTypeHint.DIALOG);
+ // don't support maximize and minimize
+ this._gtkWindow.get_window().set_functions(Gdk.WMFunction.MOVE |
+ Gdk.WMFunction.RESIZE |
+ Gdk.WMFunction.CLOSE);
}));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]