[epiphany/wip/mcatanzaro/fedora-needs-upstreamed: 6/20] Display unescaped URIs in the location entry completion



commit f1ab1da082e780c77ff6031a743485fbe0e47cf4
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]