[gnome-shell/message-tray] update for chrome.js changes in master
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell/message-tray] update for chrome.js changes in master
- Date: Wed, 2 Dec 2009 22:14:13 +0000 (UTC)
commit 74418f212945e40aef41c34f4dd2fd614acdedf7
Author: Dan Winship <danw gnome org>
Date: Wed Dec 2 17:14:04 2009 -0500
update for chrome.js changes in master
js/ui/messageTray.js | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index d105c98..fe7abf9 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -26,12 +26,7 @@ Notification.prototype = {
this._text = new St.Label();
this.actor.add(this._text, { expand: true, x_fill: false, x_align: St.Align.MIDDLE });
- // Directly adding the actor to Main.chrome.actor is a hack to
- // work around the fact that there is no way to add an actor that
- // affects the input region but not the shape.
- // See: https://bugzilla.gnome.org/show_bug.cgi?id=597044
- Main.chrome.actor.add_actor(this.actor);
- Main.chrome.addInputRegionActor(this.actor);
+ Main.chrome.addActor(this.actor, { affectsStruts: false });
let primary = global.get_primary_monitor();
this.actor.y = primary.height;
@@ -92,12 +87,7 @@ MessageTray.prototype = {
this.actor = new St.Bin({ name: 'message-tray',
reactive: true,
x_align: St.Align.END });
- // Directly adding the actor to Main.chrome.actor is a hack to
- // work around the fact that there is no way to add an actor that
- // affects the input region but not the shape.
- // See: https://bugzilla.gnome.org/show_bug.cgi?id=597044
- Main.chrome.actor.add_actor(this.actor);
- Main.chrome.addInputRegionActor(this.actor);
+ Main.chrome.addActor(this.actor, { affectsStruts: false });
let primary = global.get_primary_monitor();
this.actor.x = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]