diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 7 | ||||
-rw-r--r-- | src/tab-chrome.h | 9 |
2 files changed, 14 insertions, 2 deletions
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 <stdlib.h> #include <gtk/gtk.h> +#include <webkit2/webkit2.h> #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 <gtk/gtk.h> +#include <webkit2/webkit2.h> 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 |