[gnome-documents/wip/ui-changes] embed: take out the flashspot when switching view
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/ui-changes] embed: take out the flashspot when switching view
- Date: Wed, 28 Nov 2012 20:14:25 +0000 (UTC)
commit aff0af72c3a94c975c354b0d8ab5b68c89421627
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Nov 28 15:13:23 2012 -0500
embed: take out the flashspot when switching view
src/embed.js | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 83cc0bc..0370974 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -363,18 +363,6 @@ const Embed = new Lang.Class({
this._viewLayout.add(this._noResults.actor, Clutter.BinAlignment.FILL, Clutter.BinAlignment.FILL);
this._noResults.actor.lower_bottom();
- // also pack a white background to use for spotlights between window modes
- this._background =
- new Clutter.Rectangle({ color: new Clutter.Color ({ red: 255,
- blue: 255,
- green: 255,
- alpha: 255 }),
- x_align: Clutter.ActorAlign.FILL,
- x_expand: true,
- y_align: Clutter.ActorAlign.FILL,
- y_expand: true });
- this._viewActor.insert_child_below(this._background, null);
-
// create the OSD toolbar for selected items, it's hidden by default
this._selectionToolbar = new Selections.SelectionToolbar(this._contentsActor);
this._overlayLayout.add(this._selectionToolbar.actor,
@@ -467,31 +455,11 @@ const Embed = new Lang.Class({
this._toolbar.widget.visible = !fullscreen;
},
- _moveOutBackground: function() {
- Tweener.addTween(this._background, { opacity: 0,
- time: 0.20,
- transition: 'easeInQuad',
- onComplete: function() {
- this._viewActor.set_child_below_sibling(this._background, null);
- },
- onCompleteScope: this });
- },
-
- _windowModeChangeFlash: function() {
- // fade from white when returning to the view anyway
- this._viewActor.set_child_above_sibling(this._background, null);
- this._background.opacity = 255;
- this._moveOutBackground();
- },
-
_onWindowModeChanged: function(object, newMode, oldMode) {
if (newMode == WindowMode.WindowMode.OVERVIEW)
this._prepareForOverview();
else
this._prepareForPreview();
-
- if (oldMode != WindowMode.WindowMode.NONE)
- this._windowModeChangeFlash();
},
_onActiveItemChanged: function(manager, doc) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]