[Xfce4-commits] <midori:master> Show decoded urls in the locationbar
Christian Dywan
noreply at xfce.org
Thu Jul 22 01:04:04 CEST 2010
Updating branch refs/heads/master
to ca9010acd5d3be603c8f288c1f853e71d02d4203 (commit)
from cac6571371d68d0c5888879ec409ab91f594df2e (commit)
commit ca9010acd5d3be603c8f288c1f853e71d02d4203
Author: Alexander Butenko <a.butenka at gmail.com>
Date: Tue Jul 20 14:38:04 2010 -0400
Show decoded urls in the locationbar
midori/midori-locationaction.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 1f6ff2e..de70b2c 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -446,6 +446,7 @@ midori_location_action_popup_timeout_cb (gpointer data)
style = gtk_widget_get_style (action->treeview);
while (result == SQLITE_ROW)
{
+ gchar* unescaped_uri;
sqlite3_int64 type = sqlite3_column_int64 (stmt, 0);
const unsigned char* uri = sqlite3_column_text (stmt, 1);
const unsigned char* title = sqlite3_column_text (stmt, 2);
@@ -453,9 +454,13 @@ midori_location_action_popup_timeout_cb (gpointer data)
if (!icon)
icon = action->default_icon;
if (type == 1 /* history_view */)
+ {
+ unescaped_uri = g_uri_unescape_string ((const char*)uri, "");
gtk_list_store_insert_with_values (store, NULL, matches,
- URI_COL, uri, TITLE_COL, title, YALIGN_COL, 0.25,
+ URI_COL, unescaped_uri, TITLE_COL, title, YALIGN_COL, 0.25,
FAVICON_COL, icon, -1);
+ g_free (unescaped_uri);
+ }
else if (type == 2 /* search_view */)
{
gchar* search_title = g_strdup_printf (_("Search for %s"), title);
@@ -1443,7 +1448,7 @@ midori_location_action_set_uri (MidoriLocationAction* location_action,
g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
g_return_if_fail (uri != NULL);
- katze_assign (location_action->uri, g_strdup (uri));
+ katze_assign (location_action->uri, g_uri_unescape_string (uri, ""));
midori_location_action_set_text (location_action, uri);
}
More information about the Xfce4-commits
mailing list