[epiphany] Revert "ephy-title-box: Show correctly UTF-8 URL"
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "ephy-title-box: Show correctly UTF-8 URL"
- Date: Sat, 9 Aug 2014 18:30:32 +0000 (UTC)
commit 1f2826570f191cfa9908c4aeec08eb6323301e06
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Sat Aug 9 21:29:29 2014 +0300
Revert "ephy-title-box: Show correctly UTF-8 URL"
This reverts commit dcc8975f5887ba0c3da6fdfd37a1c7975852bf92.
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 9ffada7..f60637a 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -478,15 +478,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]