Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit6e643c3fe663ed3ee91f6b88f8c8a20d063fb232 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-11 04:10:47 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-05-11 04:10:47 +0200
Files72c538ef113d0de3f3ee92537d9555de3491bcc2
goodwolf-6e643c3fe663ed3ee91f6b88f8c8a20d063fb232.tar
goodwolf-6e643c3fe663ed3ee91f6b88f8c8a20d063fb232.tar.gz
goodwolf-6e643c3fe663ed3ee91f6b88f8c8a20d063fb232.zip
Parent9e8324381a639d0a2c85d7590dd5cf1bb84f8f4f (diff)
Parentb916efeea04fe83d4da3d1bc4c972d71939bfe3b (diff)
Merge branch 'features/uri-decoded' into develop
1 files changed, 6 insertions, 1 deletions
-rw-r--r--badwolf.c7
diff --git a/badwolf.c b/badwolf.c
index 1fef34e..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;
}
@@ -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;
}