[shotwell] Don't pack webview into a scrolled window
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Don't pack webview into a scrolled window
- Date: Tue, 8 Dec 2015 16:42:47 +0000 (UTC)
commit a2844fbfeb23a0bf6b2489761ab5f51e15dc4efe
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Fri Dec 4 17:33:43 2015 +0100
Don't pack webview into a scrolled window
The scrollbar is drawn by WebKitWebView in WK2.
https://bugzilla.gnome.org/show_bug.cgi?id=751709
plugins/common/RESTSupport.vala | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index a4a0621..3ea8042 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -725,7 +725,6 @@ public abstract class GooglePublisher : Object, Spit.Publishing.Publisher {
private WebKit.WebView webview;
private Gtk.Box pane_widget;
- private Gtk.ScrolledWindow webview_frame;
private string auth_sequence_start_url;
public signal void authorized(string auth_code);
@@ -735,18 +734,13 @@ public abstract class GooglePublisher : Object, Spit.Publishing.Publisher {
pane_widget = new Gtk.Box(Gtk.Orientation.VERTICAL, 0);
- webview_frame = new Gtk.ScrolledWindow(null, null);
- webview_frame.set_shadow_type(Gtk.ShadowType.ETCHED_IN);
- webview_frame.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
-
webview = new WebKit.WebView();
webview.get_settings().enable_plugins = false;
webview.load_changed.connect(on_page_load_changed);
webview.context_menu.connect(() => { return false; });
- webview_frame.add(webview);
- pane_widget.pack_start(webview_frame, true, true, 0);
+ pane_widget.pack_start(webview, true, true, 0);
}
public static bool is_cache_dirty() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]