From 897a1b9db90c68d0621be182823c413071e0062c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 02:43:51 -0400 Subject: mq_tab_chrome_set_web_view(): Change argument 2 to (MqWebView *) --- 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), -- cgit v0.9.1