Reorganize stage in terms of a UI Group actor and everything else

In preparation for adding magnification, "uiGroup.patch", organizes the stage
along the following lines:

Stage
  *Magnifier
  UI group
    Window group
    Chrome group
    Overlay group
    Alt tab
    App display
    Chrome
    ...

This allows a magnifier actor to clone and magnify the UI group.  The magnifier
is a sibling of the UI Group in this stage oraganization -- see the next patch,
"Magnifier.patch".
This commit is contained in:
Joseph Scheuhammer
2010-05-06 17:18:10 -04:00
committed by Colin Walters
parent 37692513cf
commit 62afd2ffa3
9 changed files with 18 additions and 9 deletions

View File

@ -5,6 +5,7 @@ const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
@ -25,7 +26,7 @@ WorkspaceSwitcherPopup.prototype = {
y: 0,
width: global.screen_width,
height: global.screen_height });
global.stage.add_actor(this.actor);
Main.uiGroup.add_actor(this.actor);
this._scaleWidth = global.screen_width / global.screen_height;