[gnome-documents] f



commit 2f8d34763c1ffec1d1b84e33cdf1a384804fe6d3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Aug 29 16:58:50 2011 -0400

    f

 src/mainWindow.js |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index bd464de..e7baa6c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -199,19 +199,6 @@ MainWindow.prototype = {
         doc.loadPreview(this._loaderCancellable, Lang.bind(this, this._onDocumentLoaded));
     },
 
-    _onLoadError: function(manager, message, exception) {
-        if (this._loaderTimeout != 0) {
-            Mainloop.source_remove(this._loaderTimeout);
-            this._loaderTimeout = 0;
-        }
-
-        this._loaderCancellable = null;
-        this._prepareForPreview();
-
-        let errorBox = new ErrorBox.ErrorBox(message, exception.toString());
-        this._scrolledWin.add_with_viewport(errorBox.widget);
-    },
-
     _onPdfLoaderTimeout: function() {
         this._loaderTimeout = 0;
 
@@ -240,5 +227,18 @@ MainWindow.prototype = {
 
     _onToolbarBackClicked: function() {
         this._prepareForOverview();
+    },
+
+    _onLoadError: function(manager, message, exception) {
+        if (this._loaderTimeout != 0) {
+            Mainloop.source_remove(this._loaderTimeout);
+            this._loaderTimeout = 0;
+        }
+
+        this._loaderCancellable = null;
+        this._prepareForPreview();
+
+        let errorBox = new ErrorBox.ErrorBox(message, exception.toString());
+        this._scrolledWin.add_with_viewport(errorBox.widget);
     }
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]