[sushi] window: set center gravity, to make it stay in the middle when resizing
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] window: set center gravity, to make it stay in the middle when resizing
- Date: Wed, 27 Apr 2011 21:05:19 +0000 (UTC)
commit 0dbc6cac4ad840fbe5946b02cd606c0a6f74951b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 27 16:30:01 2011 -0400
window: set center gravity, to make it stay in the middle when resizing
src/js/ui/mainWindow.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 79bd637..948db12 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -48,6 +48,7 @@ MainWindow.prototype = {
this._gtkWindow.connect("delete-event",
Lang.bind(this, this._onWindowDeleteEvent));
+ this._gtkWindow.set_gravity(Gdk.Gravity.CENTER);
},
_createClutterEmbed : function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]