summaryrefslogtreecommitdiffstats
path: root/src/tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab.c')
-rw-r--r--src/tab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tab.c b/src/tab.c
index a2b2c57..52e0c2c 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -33,12 +33,13 @@ mq_tab_new(gchar *uri, GtkNotebook *notebook)
MqTab *tab;
tab = malloc(sizeof(*tab));
- tab->chrome = mq_tab_chrome_new(uri);
+ tab->container = gtk_grid_new();
+
+ tab->chrome = mq_tab_chrome_new(uri, notebook, tab->container);
tab->body = mq_tab_body_new(uri);
mq_tab_chrome_set_web_view(tab->chrome,
mq_tab_body_get_web_view(tab->body));
- tab->container = gtk_grid_new();
gtk_grid_attach(GTK_GRID(tab->container),
mq_tab_chrome_get_container(tab->chrome),
0, 0, 1, 1);