From 2b665d00e4783ff04ad1a130b0e9d9a19cd08a74 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Sep 2017 00:03:40 -0400 Subject: mq_tab_chrome_set_web_view(): New function --- (limited to 'src') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 43aaac2..7a97437 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -22,6 +22,7 @@ #include #include +#include #include "tab-chrome.h" @@ -85,3 +86,9 @@ mq_tab_chrome_get_container(MqTabChrome *chrome) { return chrome->container; } + +void +mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view) +{ + chrome->web_view = web_view; +} diff --git a/src/tab-chrome.h b/src/tab-chrome.h index 74f65fe..359bfd1 100644 --- a/src/tab-chrome.h +++ b/src/tab-chrome.h @@ -23,10 +23,12 @@ #define MQ_TAB_CHROME_H #include +#include typedef struct { - GtkWidget *container; - GtkWidget *uri_entry; + GtkWidget *container; + GtkWidget *uri_entry; + WebKitWebView *web_view; } MqTabChrome; MqTabChrome * @@ -35,4 +37,7 @@ mq_tab_chrome_new(gchar *uri); GtkWidget * mq_tab_chrome_get_container(MqTabChrome *chrome); +void +mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view); + #endif -- cgit v0.9.1