diff options
-rw-r--r-- | src/tab-chrome.c | 7 | ||||
-rw-r--r-- | src/tab-chrome.h | 2 | ||||
-rw-r--r-- | src/tab.c | 2 |
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 @@ -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), |