summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab.c5
-rw-r--r--src/tab.h1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/tab.c b/src/tab.c
index 8a8ed86..7d1d9a7 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -437,8 +437,7 @@ init_non_root(const gchar *uri, MqTab *source)
mq_tab_populate_tab(tab);
tab->chrome = mq_tab_chrome_new(tab, uri);
- tab->body = mq_web_view_new(tab, uri);
- tab->web_view = mq_web_view_get_web_view(tab->body);
+ tab->web_view = WEBKIT_WEB_VIEW(mq_web_view_new(tab, uri));
g_signal_connect(tab->web_view, "notify::favicon",
G_CALLBACK(favicon_cb), tab);
g_signal_connect(tab->web_view, "notify::title",
@@ -449,7 +448,7 @@ init_non_root(const gchar *uri, MqTab *source)
gtk_box_pack_start(GTK_BOX(tab->container),
mq_tab_chrome_get_container(tab->chrome), FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(tab->container),
- GTK_WIDGET(tab->body), TRUE, TRUE, 0);
+ GTK_WIDGET(tab->web_view), TRUE, TRUE, 0);
return tab;
}
diff --git a/src/tab.h b/src/tab.h
index b512dae..adc674e 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -44,7 +44,6 @@ struct MqTab {
MqWindow *window;
GtkWidget *container;
MqTabChrome *chrome;
- MqWebView *body;
GtkWidget *tab;
GtkWidget *tab_image;
GtkWidget *tab_label;