Skip to content

Commit

Permalink
[Scale] Refactoring (1).
Browse files Browse the repository at this point in the history
  • Loading branch information
autarkper committed Nov 20, 2012
1 parent 0d10595 commit 8a1f94e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions js/ui/workspacesView.js
Expand Up @@ -71,16 +71,11 @@ WorkspacesView.prototype = {
// workspaces have been created. This cannot be done first because
// window movement depends on the Workspaces object being accessible
// as an Overview member.
this._overviewShowingId = Main.overview.connect('showing', Lang.bind(this, function() {
let overviewShowingId = Main.overview.connect('showing', Lang.bind(this, function() {
Main.overview.disconnect(overviewShowingId);
let activeWorkspaceIndex = global.screen.get_active_workspace_index();
this._workspaces[activeWorkspaceIndex].zoomToOverview();
}));
this._overviewShownId =
Main.overview.connect('shown',
Lang.bind(this, function() {
// this.actor.set_clip(this._clipX, this._clipY,
// this._clipWidth, this._clipHeight);
}));

this._scrollAdjustment = new St.Adjustment({ value: activeWorkspaceIndex,
lower: 0,
Expand Down Expand Up @@ -307,8 +302,6 @@ WorkspacesView.prototype = {

_onDestroy: function() {
this._scrollAdjustment.run_dispose();
Main.overview.disconnect(this._overviewShowingId);
Main.overview.disconnect(this._overviewShownId);
global.window_manager.disconnect(this._switchWorkspaceNotifyId);

if (this._inDrag)
Expand Down

0 comments on commit 8a1f94e

Please sign in to comment.