[sushi] main-window: add back a top offset for the window title
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] main-window: add back a top offset for the window title
- Date: Wed, 29 Feb 2012 14:08:54 +0000 (UTC)
commit 8ae2017883efd7b2169e6375e7d0e68e841f4e66
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 29 09:06:43 2012 -0500
main-window: add back a top offset for the window title
This was lost in commit b4eb2857b427aa574fa5f23721735e050705c541
src/js/ui/mainWindow.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 9837704..47427fd 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -563,6 +563,7 @@ MainWindow.prototype = {
this._titleActor = new GtkClutter.Actor({ contents: this._titleLabel });
this._titleActor.add_constraint(
new Clutter.AlignConstraint({ source: this._stage,
+ align_axis: Clutter.AlignAxis.X_AXIS,
factor: 0.5 }));
this._quitButton =
@@ -591,6 +592,10 @@ MainWindow.prototype = {
from_edge: Clutter.SnapEdge.RIGHT,
to_edge: Clutter.SnapEdge.LEFT,
offset: -6 }));
+ this._titleActor.add_constraint(
+ new Clutter.BindConstraint({ source: this._stage,
+ coordinate: Clutter.BindCoordinate.Y,
+ offset: 6 }));
this._titleGroup.add_actor(this._titleActor);
this._titleGroup.add_actor(this._quitActor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]