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



commit dba804f3e32bbc6c589d48d2387b6d540e38ffa2
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Wed May 7 19:57:19 2014 +0300

    Revert "ephy-title-box: Show correctly UTF-8 URL"
    
    This reverts commit 0eeb2c28ea751c6625e42177bf39b6ce0ae4abc7.

 src/ephy-title-box.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c
index 580dd6d..d08c5a8 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -481,15 +481,14 @@ ephy_title_box_transform_uri_to_label (GBinding     *binding,
                                        GValue       *to_value,
                                        gpointer      user_data)
 {
-  gchar   *decode_uri;
-  gchar   *uri;
-  gboolean rtl;
+  const gchar *label;
+  gboolean     rtl;
+  gchar       *uri;
 
   rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;
 
-  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);
+  label = g_value_get_string (from_value);
+  uri = g_strconcat (rtl ? "▾ " : label, rtl ? label : " ▾", NULL);
   g_value_take_string (to_value, uri);
 
   return TRUE;


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