From 9e5ef3089bbda8faa1fbdea937b76b69e1fe05a6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 04:09:26 -0400 Subject: mq_web_view_get_scheme(): New function --- diff --git a/src/web-view.c b/src/web-view.c index 27ca280..7d3df3b 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -36,6 +36,7 @@ struct _MqWebView { WebKitWebView parent_instance; MqTabPage *tab_page; + MqWebViewScheme scheme; gchar *uri; MqConfig *config; WebKitHitTestResult *hit_test_result; @@ -760,6 +761,12 @@ mq_web_view_new(MqTabPage *tab_page, const gchar *uri) NULL); } +MqWebViewScheme * +mq_web_view_get_scheme(MqWebView *web_view) +{ + return &web_view->scheme; +} + MqConfig * mq_web_view_get_config(MqWebView *web_view) { diff --git a/src/web-view.h b/src/web-view.h index b073fb4..9bb8977 100644 --- a/src/web-view.h +++ b/src/web-view.h @@ -30,6 +30,7 @@ typedef struct _MqWebViewClass MqWebViewClass; #include #include "tab-page.h" +#include "web-view-schemes/schemes.h" G_BEGIN_DECLS @@ -51,6 +52,9 @@ mq_web_view_get_type(void); MqWebView * mq_web_view_new(MqTabPage *tab_page, const gchar *uri); +MqWebViewScheme * +mq_web_view_get_scheme(MqWebView *web_view); + MqConfig * mq_web_view_get_config(MqWebView *web_view); -- cgit v0.9.1