diff options
-rw-r--r-- | src/tab.c | 5 | ||||
-rw-r--r-- | src/tab.h | 1 |
2 files changed, 2 insertions, 4 deletions
@@ -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; } @@ -44,7 +44,6 @@ struct MqTab { MqWindow *window; GtkWidget *container; MqTabChrome *chrome; - MqWebView *body; GtkWidget *tab; GtkWidget *tab_image; GtkWidget *tab_label; |