From 6cafce168ae72bd99e2ad88f428da11e2de36762 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 04:21:15 -0400 Subject: MqWebView: Set scheme methods --- (limited to 'src') 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)); -- cgit v0.9.1