[gnome-documents] preview: make sure to show preview scrolled window when setting model



commit f4b21043123438c1395a977f5142915e840f937b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jun 30 14:50:44 2015 -0700

    preview: make sure to show preview scrolled window when setting model
    
    This unbreaks activating documents from the search provider. Previously
    only an error page would be displayed.

 src/preview.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 6b5bb54..0c2e05c 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -565,6 +565,8 @@ const PreviewView = new Lang.Class({
             this._model.connect('page-changed', Lang.bind(this, this._onPageChanged));
 
             this._updateNightMode();
+
+            this.widget.set_visible_child_full('view', Gtk.StackTransitionType.NONE);
         }
     },
 


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