diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 04:21:15 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 04:21:15 (EDT) |
commit | 6cafce168ae72bd99e2ad88f428da11e2de36762 (patch) | |
tree | 11e4a168aeb0adc7c2c7227eb2a00c0aa07a8a92 /src | |
parent | 926ee678fd39c7ee2c355579794c4b2e4ce7bfac (diff) | |
download | marquee-6cafce168ae72bd99e2ad88f428da11e2de36762.zip marquee-6cafce168ae72bd99e2ad88f428da11e2de36762.tar.gz marquee-6cafce168ae72bd99e2ad88f428da11e2de36762.tar.bz2 |
MqWebView: Set scheme methods
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/web-view.c b/src/web-view.c index 7d3df3b..2eb10d3 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -34,15 +34,16 @@ #include "web-view-schemes/schemes.h" struct _MqWebView { - WebKitWebView parent_instance; - MqTabPage *tab_page; - MqWebViewScheme scheme; - gchar *uri; - MqConfig *config; - WebKitHitTestResult *hit_test_result; - WebKitHitTestResult *mouse_target_hit_test_result; - GtkComboBox *save_type_combo_box; - GFile *save_file; + WebKitWebView parent_instance; + MqTabPage *tab_page; + MqWebViewScheme scheme; + MqWebViewSchemeMethods *scheme_methods; + gchar *uri; + MqConfig *config; + WebKitHitTestResult *hit_test_result; + WebKitHitTestResult *mouse_target_hit_test_result; + GtkComboBox *save_type_combo_box; + GFile *save_file; }; enum { @@ -614,6 +615,8 @@ constructed(GObject *object) web_view = MQ_WEB_VIEW(object); + web_view->scheme_methods = &mq_web_view_normal_scheme_methods; + web_view->config = mq_application_get_config( mq_tab_page_get_application(web_view->tab_page)); |