From 16aa3d225464db222c5b5444b61bb8ccfac9ddbc Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 11 Oct 2017 17:22:36 -0400 Subject: MqTab: Use MqWebView --- (limited to 'src') diff --git a/src/tab.c b/src/tab.c index 3e70fe0..98659d7 100644 --- a/src/tab.c +++ b/src/tab.c @@ -25,7 +25,7 @@ #include "tab.h" #include "tab-chrome.h" -#include "tab-body.h" +#include "web-view.h" static void foreach_tab(MqTab *node, void (*cb)(MqTab *node)) @@ -437,8 +437,8 @@ init_non_root(const gchar *uri, MqTab *source) mq_tab_populate_tab(tab); tab->chrome = mq_tab_chrome_new(tab, uri); - tab->body = mq_tab_body_new(tab, uri); - tab->web_view = mq_tab_body_get_web_view(tab->body); + tab->body = mq_web_view_new(tab, uri); + tab->web_view = mq_web_view_get_web_view(tab->body); g_signal_connect(tab->web_view, "notify::favicon", G_CALLBACK(favicon_cb), tab); g_signal_connect(tab->web_view, "notify::title", @@ -449,7 +449,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), - mq_tab_body_get_container(tab->body), TRUE, TRUE, 0); + mq_web_view_get_container(tab->body), TRUE, TRUE, 0); return tab; } diff --git a/src/tab.h b/src/tab.h index 7d61bbd..b512dae 100644 --- a/src/tab.h +++ b/src/tab.h @@ -29,7 +29,7 @@ typedef struct MqTab MqTab; #include "application.h" #include "window.h" #include "tab-chrome.h" -#include "tab-body.h" +#include "web-view.h" struct MqTab { MqTab *root; @@ -44,7 +44,7 @@ struct MqTab { MqWindow *window; GtkWidget *container; MqTabChrome *chrome; - MqTabBody *body; + MqWebView *body; GtkWidget *tab; GtkWidget *tab_image; GtkWidget *tab_label; -- cgit v0.9.1