logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: b916efeea04fe83d4da3d1bc4c972d71939bfe3b
parent b1a14aaf4a74535607ef3df56eb14dce0fdc91b9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 May 2019 03:54:27 +0200

Add a decoded uri tooltip for location entry

Diffstat:

Mbadwolf.c5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

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; }