[epiphany] ephy-title-box: Show correctly UTF-8 URL



commit dcc8975f5887ba0c3da6fdfd37a1c7975852bf92
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Fri Feb 28 12:53:41 2014 +0200

    ephy-title-box: Show correctly UTF-8 URL
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710004

 src/ephy-title-box.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c
index f60637a..9ffada7 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -478,14 +478,15 @@ ephy_title_box_transform_uri_to_label (GBinding     *binding,
                                        GValue       *to_value,
                                        gpointer      user_data)
 {
-  const gchar *label;
-  gboolean     rtl;
-  gchar       *uri;
+  gchar   *decode_uri;
+  gchar   *uri;
+  gboolean rtl;
 
   rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;
 
-  label = g_value_get_string (from_value);
-  uri = g_strconcat (rtl ? "▾ " : label, rtl ? label : " ▾", NULL);
+  decode_uri = g_uri_unescape_string (g_value_get_string (from_value), NULL);
+  uri = g_strconcat (rtl ? "▾ " : decode_uri, rtl ? decode_uri : " ▾", NULL);
+  g_free (decode_uri);
   g_value_take_string (to_value, uri);
 
   return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]