[gnome-documents/wip/gepub: 3/4] epub: remove unneeded scrolled window



commit 1608350d60bcb8bb958d0899bdc630a6a57be210
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jun 11 15:51:37 2016 -0700

    epub: remove unneeded scrolled window
    
    The WebKit view already scrolls.

 src/epubview.js |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/epubview.js b/src/epubview.js
index 7697615..8dd1d34 100644
--- a/src/epubview.js
+++ b/src/epubview.js
@@ -60,12 +60,7 @@ const EPUBView = new Lang.Class({
         this._errorBox = new ErrorBox.ErrorBox();
         this.add_named(this._errorBox, 'error');
 
-        this._sw = new Gtk.ScrolledWindow({ hexpand: true,
-                                            vexpand: true });
-
-        this.add_named(this._sw, 'view');
         this._createView();
-
         this.show_all();
 
         Application.documentManager.connect('load-started',
@@ -142,7 +137,7 @@ const EPUBView = new Lang.Class({
         var ctx = this.view.get_context();
         ctx.register_uri_scheme("epub", Lang.bind(this, this._getResource));
 
-        this._sw.add(this.view);
+        this.add_named(this.view, 'view');
         this.view.show();
 
         this._navControls = new EPUBViewNavControls(this, this._overlay);


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