logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 6e643c3fe663ed3ee91f6b88f8c8a20d063fb232
parent: 9e8324381a639d0a2c85d7590dd5cf1bb84f8f4f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 11 May 2019 04:10:47 +0200

Merge branch 'features/uri-decoded' into develop

Diffstat:

Mbadwolf.c7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/badwolf.c b/badwolf.c @@ -202,6 +202,11 @@ WebViewCb_notify__uri(WebKitWebView *webView, GParamSpec *pspec, gpointer user_d gtk_entry_set_text(GTK_ENTRY(browser->location), location_uri); + if(webkit_uri_for_display(location_uri) != location_uri) + gtk_widget_set_tooltip_text(browser->location, webkit_uri_for_display(location_uri)); + else + gtk_widget_set_has_tooltip(browser->location, false); + return TRUE; } @@ -317,7 +322,7 @@ WebViewCb_mouse_target_changed(WebKitWebView *webView, struct Client *browser = (struct Client *)user_data; const gchar *link_uri = webkit_hit_test_result_get_link_uri(hit); - gtk_label_set_text(GTK_LABEL(browser->statuslabel), link_uri); + gtk_label_set_text(GTK_LABEL(browser->statuslabel), webkit_uri_for_display(link_uri)); return TRUE; }