[gnome-documents] preview: fix fullscreen toolbar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] preview: fix fullscreen toolbar
- Date: Thu, 19 Jul 2012 03:37:48 +0000 (UTC)
commit 86d87f0c49269e6052ec74b9cb321271865da749
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jul 18 23:36:46 2012 -0400
preview: fix fullscreen toolbar
It was broken after the last commit.
src/preview.js | 52 +++++++++++++++++++++++++++-------------------------
1 files changed, 27 insertions(+), 25 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 124f5b1..41149cb 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -291,31 +291,6 @@ const PreviewFullscreen = new Lang.Class({
}
});
-const PreviewFullscreenToolbar = new Lang.Class({
- Name: 'PreviewFullscreenToolbar',
- Extends: MainToolbar.MainToolbar,
-
- _init: function() {
- this.parent();
-
- this.actor.y = -(this.widget.get_preferred_height()[1]);
- },
-
- show: function() {
- Tweener.addTween(this.actor,
- { y: 0,
- time: 0.20,
- transition: 'easeInQuad' });
- },
-
- hide: function() {
- Tweener.addTween(this.actor,
- { y: -(this.widget.get_preferred_height()[1]),
- time: 0.20,
- transition: 'easeOutQuad' });
- }
-});
-
const PreviewToolbar = new Lang.Class({
Name: 'PreviewToolbar',
Extends: MainToolbar.MainToolbar,
@@ -478,3 +453,30 @@ const PreviewSearchbar = new Lang.Class({
Gd.ev_view_find_changed(this._previewView.view, job, page);
}
});
+
+const PreviewFullscreenToolbar = new Lang.Class({
+ Name: 'PreviewFullscreenToolbar',
+ Extends: PreviewToolbar,
+
+ _init: function() {
+ this.parent();
+
+ log(this.actor);
+
+ this.actor.y = -(this.widget.get_preferred_height()[1]);
+ },
+
+ show: function() {
+ Tweener.addTween(this.actor,
+ { y: 0,
+ time: 0.20,
+ transition: 'easeInQuad' });
+ },
+
+ hide: function() {
+ Tweener.addTween(this.actor,
+ { y: -(this.widget.get_preferred_height()[1]),
+ time: 0.20,
+ transition: 'easeOutQuad' });
+ }
+});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]