[epiphany/wip/mcatanzaro/fedora-needs-upstreamed: 21/32] Display unescaped URIs in the location entry completion
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/mcatanzaro/fedora-needs-upstreamed: 21/32] Display unescaped URIs in the location entry completion
- Date: Wed, 4 Mar 2015 15:25:02 +0000 (UTC)
commit 7e1fe860dbcc3b79ec603ed442cec9b9ffefe41e
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Dec 11 11:30:22 2014 +0100
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 files changed, 4 insertions(+), 1 deletions(-)
---
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<span font-size=\"small\" color=\"%s\">%s</span>",
title, color_text, url);
+ ctext = g_markup_printf_escaped ("%s\n<span font-size=\"small\" color=\"%s\">%s</span>",
title, color_text, unescaped_url);
g_free (color_text);
g_free (title);
+ g_free (unescaped_url);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]