summaryrefslogtreecommitdiffstats
path: root/src/tab-body.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-25 21:20:38 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-25 21:20:38 (EDT)
commitd1920eadf30437f3e122415a520e0186085a9b80 (patch)
tree53bf70210bc6661601d9137228930a6d922c3834 /src/tab-body.c
parent4e651fbca7f8859a0ae2249ea0d364dea8bb1c5f (diff)
downloadmarquee-d1920eadf30437f3e122415a520e0186085a9b80.zip
marquee-d1920eadf30437f3e122415a520e0186085a9b80.tar.gz
marquee-d1920eadf30437f3e122415a520e0186085a9b80.tar.bz2
mq_tab_body_new(): Accept and save MqTab
Diffstat (limited to 'src/tab-body.c')
-rw-r--r--src/tab-body.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab-body.c b/src/tab-body.c
index 808a10b..1407b01 100644
--- a/src/tab-body.c
+++ b/src/tab-body.c
@@ -25,13 +25,15 @@
#include <webkit2/webkit2.h>
#include "tab-body.h"
+#include "tab.h"
MqTabBody *
-mq_tab_body_new(gchar *uri)
+mq_tab_body_new(MqTab *tab, gchar *uri)
{
MqTabBody *body;
body = malloc(sizeof(*body));
+ body->tab = tab;
body->web_view = WEBKIT_WEB_VIEW(webkit_web_view_new());
if (uri) {