[gnome-shell/gnome-3-0] workspace: Use Main.uiGroup instead of global.stage
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-0] workspace: Use Main.uiGroup instead of global.stage
- Date: Wed, 25 May 2011 19:58:30 +0000 (UTC)
commit 28667a686d975d4c1809728efcc1d422d0c9df99
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed May 11 17:41:05 2011 -0400
workspace: Use Main.uiGroup instead of global.stage
The mouse-wheel zoom "easter egg" broke when using the magnifier
because it was using global.stage. Fix it to use Main.uiGroup instead.
https://bugzilla.gnome.org/show_bug.cgi?id=649632
js/ui/workspace.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 92f2cf5..0e7cfe1 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -237,7 +237,7 @@ WindowClone.prototype = {
this.emit('zoom-start');
if (!this._zoomLightbox)
- this._zoomLightbox = new Lightbox.Lightbox(global.stage,
+ this._zoomLightbox = new Lightbox.Lightbox(Main.uiGroup,
{ fadeTime: LIGHTBOX_FADE_TIME });
this._zoomLightbox.show();
@@ -248,7 +248,7 @@ WindowClone.prototype = {
this._zoomGlobalOrig.setPosition.apply(this._zoomGlobalOrig, this.actor.get_transformed_position());
this._zoomGlobalOrig.setScale(width / this.actor.width, height / this.actor.height);
- this.actor.reparent(global.stage);
+ this.actor.reparent(Main.uiGroup);
this._zoomLightbox.highlight(this.actor);
[this.actor.x, this.actor.y] = this._zoomGlobalOrig.getPosition();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]