[gnome-documents/wip/ui-changes] Remove dead old fullscreen code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/ui-changes] Remove dead old fullscreen code
- Date: Wed, 28 Nov 2012 23:46:13 +0000 (UTC)
commit 63b4a35f7197a5d3113a6c8286106da38aa0ded4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Nov 28 18:45:02 2012 -0500
Remove dead old fullscreen code
src/Makefile-lib.am | 2 -
src/lib/gd-fullscreen-filter.c | 132 ----------------------------------------
src/lib/gd-fullscreen-filter.h | 75 -----------------------
src/preview.js | 55 -----------------
4 files changed, 0 insertions(+), 264 deletions(-)
---
diff --git a/src/Makefile-lib.am b/src/Makefile-lib.am
index 05ac8bd..f1276ce 100644
--- a/src/Makefile-lib.am
+++ b/src/Makefile-lib.am
@@ -8,7 +8,6 @@ gdprivate_cflags = \
gdprivate_source_h = \
lib/gd-utils.h \
- lib/gd-fullscreen-filter.h \
lib/gd-metadata.h \
lib/gd-pdf-loader.h \
lib/gd-sidebar-thumbnails.h \
@@ -17,7 +16,6 @@ gdprivate_source_h = \
gdprivate_source_c = \
lib/gd-utils.c \
- lib/gd-fullscreen-filter.c \
lib/gd-metadata.c \
lib/gd-pdf-loader.c \
lib/gd-sidebar-thumbnails.c \
diff --git a/src/preview.js b/src/preview.js
index 86ec440..09accfb 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -288,61 +288,6 @@ const PreviewThumbnails = new Lang.Class({
}
});
-const PreviewFullscreen = new Lang.Class({
- Name: 'PreviewFullscreen',
-
- _init: function(previewView, layout, parentActor) {
- this._motionTimeoutId = 0;
-
- let model = previewView.getModel();
-
- this._filter = new GdPrivate.FullscreenFilter();
- this._filter.connect('motion-event', Lang.bind(this, this._fullscreenMotionHandler));
- this._filter.start();
- },
-
- destroy: function() {
- if (this._motionTimeoutId != 0) {
- Mainloop.source_remove(this._motionTimeoutId);
- this._motionTimeoutId = 0;
- }
-
- this._filter.stop();
-
- this._fsToolbar.actor.destroy();
- },
-
- _show: function() {
- this._fsToolbar.show();
- },
-
- _hide: function() {
- this._fsToolbar.hide();
- },
-
- _fullscreenMotionHandler: function() {
- if (!Global.modeController.getFullscreen())
- return;
-
- // if we were idle fade in the toolbar, otherwise reset
- // the timeout
- if (this._motionTimeoutId == 0) {
- this._show();
- } else {
- Mainloop.source_remove(this._motionTimeoutId);
- }
-
- this._motionTimeoutId = Mainloop.timeout_add_seconds
- (_FULLSCREEN_TOOLBAR_TIMEOUT, Lang.bind(this,
- function() {
- this._motionTimeoutId = 0;
- this._hide();
-
- return false;
- }));
- }
-});
-
const PreviewToolbar = new Lang.Class({
Name: 'PreviewToolbar',
Extends: MainToolbar.MainToolbar,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]