[shotwell] common: Remove extra box around webview



commit 2f4504d78d29ccb80145b596a25e6fefe5f9c656
Author: Jens Georg <mail jensge org>
Date:   Sat Oct 29 12:23:17 2016 +0200

    common: Remove extra box around webview
    
    Signed-off-by: Jens Georg <mail jensge org>

 plugins/common/WebAuthenticationPane.vala |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plugins/common/WebAuthenticationPane.vala b/plugins/common/WebAuthenticationPane.vala
index 0a77cf6..c537748 100644
--- a/plugins/common/WebAuthenticationPane.vala
+++ b/plugins/common/WebAuthenticationPane.vala
@@ -14,7 +14,6 @@ namespace Shotwell.Plugins.Common {
         public string login_uri { owned get; construct; }
 
         private WebKit.WebView webview;
-        private Gtk.Box pane_widget;
 
         public override void constructed () {
             base.constructed ();
@@ -24,15 +23,12 @@ namespace Shotwell.Plugins.Common {
 
             this.webview.load_changed.connect (this.on_page_load_changed);
             this.webview.context_menu.connect ( () => { return false; });
-
-            this.pane_widget = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
-            this.pane_widget.pack_start (this.webview, true, true, 0);
         }
 
         public abstract void on_page_load ();
 
         protected void set_cursor (Gdk.CursorType type) {
-            var window = pane_widget.get_window ();
+            var window = webview.get_window ();
             var display = window.get_display ();
             var cursor = new Gdk.Cursor.for_display (display, type);
             window.set_cursor (cursor);
@@ -62,7 +58,7 @@ namespace Shotwell.Plugins.Common {
         }
 
         public Gtk.Widget get_widget() {
-            return pane_widget;
+            return this.webview;
         }
 
         public void on_pane_installed () {


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