diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-17 00:03:40 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-17 00:03:40 (EDT) |
commit | 2b665d00e4783ff04ad1a130b0e9d9a19cd08a74 (patch) | |
tree | 3f001c639279d6685740d844278bab2029ac272f /src | |
parent | 4d4aecedb0444a62828093e2f3f02c25729dd10b (diff) | |
download | marquee-2b665d00e4783ff04ad1a130b0e9d9a19cd08a74.zip marquee-2b665d00e4783ff04ad1a130b0e9d9a19cd08a74.tar.gz marquee-2b665d00e4783ff04ad1a130b0e9d9a19cd08a74.tar.bz2 |
mq_tab_chrome_set_web_view(): New function
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 |