summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-12 02:13:14 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-12 02:13:14 (EDT)
commitc58eb8f85b733af709ee302026f21d1a93cee531 (patch)
treef79d0d3f05c0ce103458e1b8e1f98b8b9df73b15
parent7269e5e9d8c1206b634ce2a65fca54b8e6a71631 (diff)
downloadmarquee-c58eb8f85b733af709ee302026f21d1a93cee531.zip
marquee-c58eb8f85b733af709ee302026f21d1a93cee531.tar.gz
marquee-c58eb8f85b733af709ee302026f21d1a93cee531.tar.bz2
MqWebView: Drop newly thin URI-getting wrapper function
-rw-r--r--src/tab-chrome.c12
1 files changed, 3 insertions, 9 deletions
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);
}