From c58eb8f85b733af709ee302026f21d1a93cee531 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 02:13:14 -0400 Subject: MqWebView: Drop newly thin URI-getting wrapper function --- (limited to 'src/tab-chrome.c') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 8f36cb4..c7306da 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -768,12 +768,6 @@ mq_tab_chrome_get_container(MqTabChrome *chrome) return chrome->container; } -const gchar * -web_view_get_uri(MqWebView *web_view) -{ - return mq_web_view_get_uri(web_view); -} - static void load_changed_cb(MqWebView *web_view, WebKitLoadEvent load_event, MqTabChrome *chrome) @@ -784,7 +778,7 @@ load_changed_cb(MqWebView *web_view, WebKitLoadEvent load_event, case WEBKIT_LOAD_STARTED: case WEBKIT_LOAD_REDIRECTED: case WEBKIT_LOAD_COMMITTED: - uri = web_view_get_uri(web_view); + uri = mq_web_view_get_uri(web_view); gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri); gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), NULL); @@ -815,7 +809,7 @@ mouse_target_changed_cb(MqWebView G_GNUC_UNUSED *web_view, { const gchar *uri; - uri = web_view_get_uri(web_view); + uri = mq_web_view_get_uri(web_view); if (webkit_hit_test_result_context_is_link(hit_test_result)) { if (gtk_widget_has_focus(chrome->uri_entry)) { } else if (chrome->hovered_link_uri && @@ -890,7 +884,7 @@ uri_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *paramspec, { const gchar *uri; - uri = web_view_get_uri(web_view); + uri = mq_web_view_get_uri(web_view); gtk_entry_set_text(GTK_ENTRY(chrome->uri_entry), uri); gtk_entry_set_attributes(GTK_ENTRY(chrome->uri_entry), NULL); } -- cgit v0.9.1