Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitb916efeea04fe83d4da3d1bc4c972d71939bfe3b (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-08 03:54:27 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-08 03:54:27 +0200
Filescc351ffa17740e5f1f4f2196b50f8f28e1f4ec6c
goodwolf-b916efeea04fe83d4da3d1bc4c972d71939bfe3b.tar
goodwolf-b916efeea04fe83d4da3d1bc4c972d71939bfe3b.tar.gz
goodwolf-b916efeea04fe83d4da3d1bc4c972d71939bfe3b.zip
Parentb1a14aaf4a74535607ef3df56eb14dce0fdc91b9 (diff)
Add a decoded uri tooltip for location entry
1 files changed, 5 insertions, 0 deletions
-rw-r--r--badwolf.c5
diff --git a/badwolf.c b/badwolf.c
index fc02a78..6a4fa3b 100644
--- 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;
}