workspace: Reindent

https://bugzilla.gnome.org/show_bug.cgi?id=582650
This commit is contained in:
Jasper St. Pierre 2012-08-08 14:21:20 -03:00
parent cd43c4983b
commit 4ff0697ee7

View File

@ -499,9 +499,9 @@ const WindowOverlay = new Lang.Class({
this.title.opacity = 0; this.title.opacity = 0;
this._parentActor.raise_top(); this._parentActor.raise_top();
Tweener.addTween(this.title, Tweener.addTween(this.title,
{ opacity: 255, { opacity: 255,
time: CLOSE_BUTTON_FADE_TIME, time: CLOSE_BUTTON_FADE_TIME,
transition: 'easeOutQuad' }); transition: 'easeOutQuad' });
}, },
chromeWidth: function () { chromeWidth: function () {
@ -510,7 +510,7 @@ const WindowOverlay = new Lang.Class({
chromeHeights: function () { chromeHeights: function () {
return [this.closeButton.height - this.closeButton._overlap, return [this.closeButton.height - this.closeButton._overlap,
this.title.height + this.title._spacing]; this.title.height + this.title._spacing];
}, },
/** /**
@ -720,9 +720,9 @@ const Workspace = new Lang.Class({
Lang.bind(this, this._windowRemoved)); Lang.bind(this, this._windowRemoved));
} }
this._windowEnteredMonitorId = global.screen.connect('window-entered-monitor', this._windowEnteredMonitorId = global.screen.connect('window-entered-monitor',
Lang.bind(this, this._windowEnteredMonitor)); Lang.bind(this, this._windowEnteredMonitor));
this._windowLeftMonitorId = global.screen.connect('window-left-monitor', this._windowLeftMonitorId = global.screen.connect('window-left-monitor',
Lang.bind(this, this._windowLeftMonitor)); Lang.bind(this, this._windowLeftMonitor));
this._repositionWindowsId = 0; this._repositionWindowsId = 0;
this.leavingOverview = false; this.leavingOverview = false;
@ -1044,20 +1044,20 @@ const Workspace = new Lang.Class({
/* Hidden windows should fade in and grow /* Hidden windows should fade in and grow
* therefore we need to resize them now so they * therefore we need to resize them now so they
* can be scaled up later */ * can be scaled up later */
if (initialPositioning) { if (initialPositioning) {
clone.actor.opacity = 0; clone.actor.opacity = 0;
clone.actor.scale_x = 0; clone.actor.scale_x = 0;
clone.actor.scale_y = 0; clone.actor.scale_y = 0;
clone.actor.x = x; clone.actor.x = x;
clone.actor.y = y; clone.actor.y = y;
} }
// Make the window slightly transparent to indicate it's hidden // Make the window slightly transparent to indicate it's hidden
Tweener.addTween(clone.actor, Tweener.addTween(clone.actor,
{ opacity: 255, { opacity: 255,
time: Overview.ANIMATION_TIME, time: Overview.ANIMATION_TIME,
transition: 'easeInQuad' transition: 'easeInQuad'
}); });
} }
this._animateClone(clone, overlay, x, y, scale, initialPositioning); this._animateClone(clone, overlay, x, y, scale, initialPositioning);
@ -1088,16 +1088,16 @@ const Workspace = new Lang.Class({
_animateClone: function(clone, overlay, x, y, scale, initialPositioning) { _animateClone: function(clone, overlay, x, y, scale, initialPositioning) {
Tweener.addTween(clone.actor, Tweener.addTween(clone.actor,
{ x: x, { x: x,
y: y, y: y,
scale_x: scale, scale_x: scale,
scale_y: scale, scale_y: scale,
time: Overview.ANIMATION_TIME, time: Overview.ANIMATION_TIME,
transition: 'easeOutQuad', transition: 'easeOutQuad',
onComplete: Lang.bind(this, function() { onComplete: Lang.bind(this, function() {
this._showWindowOverlay(clone, overlay, true); this._showWindowOverlay(clone, overlay, true);
}) })
}); });
this._updateWindowOverlayPositions(clone, overlay, x, y, scale, true); this._updateWindowOverlayPositions(clone, overlay, x, y, scale, true);
}, },