[gnome-documents] Remove dead old fullscreen code



commit 08aa19b5ccfb0aff6678664a3db9aea87f90c1df
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 90bdd33..8030eac 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -313,61 +313,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 (!Application.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]