From 7e1fe860dbcc3b79ec603ed442cec9b9ffefe41e Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 11 Dec 2014 11:30:22 +0100 Subject: [PATCH 04/15] Display unescaped URIs in the location entry completion https://bugzilla.gnome.org/show_bug.cgi?id=710004 --- lib/widgets/ephy-location-entry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 82c04f1..b74454f 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -1085,17 +1085,20 @@ textcell_data_func (GtkCellLayout *cell_layout, { GdkRGBA color; char *color_text; + char *unescaped_url; sanitize_location (&url); + unescaped_url = g_uri_unescape_string (url, NULL); style = gtk_widget_get_style_context (entry); gtk_style_context_get_color (style, GTK_STATE_FLAG_INSENSITIVE, &color); color_text = rgba_to_hex (&color); - ctext = g_markup_printf_escaped ("%s\n%s", title, color_text, url); + ctext = g_markup_printf_escaped ("%s\n%s", title, color_text, unescaped_url); g_free (color_text); g_free (title); + g_free (unescaped_url); } else { -- 2.1.0