diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 04:09:26 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 04:11:12 (EDT) |
commit | 9e5ef3089bbda8faa1fbdea937b76b69e1fe05a6 (patch) | |
tree | 449e161ca6e925edf155a2819e6c2dd3abe76484 | |
parent | b4b22833e657afaced007b07909c997c16a7c292 (diff) | |
download | marquee-9e5ef3089bbda8faa1fbdea937b76b69e1fe05a6.zip marquee-9e5ef3089bbda8faa1fbdea937b76b69e1fe05a6.tar.gz marquee-9e5ef3089bbda8faa1fbdea937b76b69e1fe05a6.tar.bz2 |
mq_web_view_get_scheme(): New function
-rw-r--r-- | src/web-view.c | 7 | ||||
-rw-r--r-- | src/web-view.h | 4 |
2 files changed, 11 insertions, 0 deletions
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 <webkit2/webkit2.h> #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); |