summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-chrome.c7
-rw-r--r--src/tab-chrome.h2
-rw-r--r--src/tab.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index c7306da..92acd63 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -980,9 +980,10 @@ connect_web_view(MqTabChrome *chrome)
}
void
-mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view)
+mq_tab_chrome_set_web_view(MqTabChrome *chrome, MqWebView *web_view)
{
- chrome->web_view = MQ_WEB_VIEW(web_view);
- chrome->find_controller = webkit_web_view_get_find_controller(web_view);
+ chrome->web_view = web_view;
+ chrome->find_controller = webkit_web_view_get_find_controller(
+ WEBKIT_WEB_VIEW(web_view));
connect_web_view(chrome);
}
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index 2ec5139..6547f20 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -64,6 +64,6 @@ GtkWidget *
mq_tab_chrome_get_container(MqTabChrome *chrome);
void
-mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view);
+mq_tab_chrome_set_web_view(MqTabChrome *chrome, MqWebView *web_view);
#endif
diff --git a/src/tab.c b/src/tab.c
index 7d1d9a7..021c04c 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -442,7 +442,7 @@ init_non_root(const gchar *uri, MqTab *source)
G_CALLBACK(favicon_cb), tab);
g_signal_connect(tab->web_view, "notify::title",
G_CALLBACK(title_cb), tab);
- mq_tab_chrome_set_web_view(tab->chrome, tab->web_view);
+ mq_tab_chrome_set_web_view(tab->chrome, MQ_WEB_VIEW(tab->web_view));
tab->container = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start(GTK_BOX(tab->container),