summaryrefslogtreecommitdiffstats
path: root/src/tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab.c')
-rw-r--r--src/tab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tab.c b/src/tab.c
index f5851ca..1f92183 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -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),