diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-21 19:46:31 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-21 19:46:31 (EDT) |
commit | 9f48ae41d3b19a8777bbbfd6f8a57fcdadf3b1a5 (patch) | |
tree | 07f3d4f4aca1e4d4c44d6e82b94df75074e3ca5c /src | |
parent | 964d83cadd9b477ecdc1a10bc33a2a4b4e6d4992 (diff) | |
download | marquee-9f48ae41d3b19a8777bbbfd6f8a57fcdadf3b1a5.zip marquee-9f48ae41d3b19a8777bbbfd6f8a57fcdadf3b1a5.tar.gz marquee-9f48ae41d3b19a8777bbbfd6f8a57fcdadf3b1a5.tar.bz2 |
MqTab: Save WebKitWebView instance in struct
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 4 | ||||
-rw-r--r-- | src/tab.h | 7 |
2 files changed, 6 insertions, 5 deletions
@@ -35,8 +35,8 @@ mq_tab_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label) tab = malloc(sizeof(*tab)); tab->chrome = mq_tab_chrome_new(uri, tab_image, tab_label); tab->body = mq_tab_body_new(uri); - mq_tab_chrome_set_web_view(tab->chrome, - mq_tab_body_get_web_view(tab->body)); + tab->web_view = mq_tab_body_get_web_view(tab->body); + mq_tab_chrome_set_web_view(tab->chrome, tab->web_view); tab->container = gtk_grid_new(); gtk_grid_attach(GTK_GRID(tab->container), @@ -28,9 +28,10 @@ #include "tab-body.h" typedef struct { - GtkWidget *container; - MqTabChrome *chrome; - MqTabBody *body; + GtkWidget *container; + MqTabChrome *chrome; + MqTabBody *body; + WebKitWebView *web_view; } MqTab; MqTab * |