]> spindle.queued.net Git - midori/commitdiff
Decode URIs before updating the locationbar
authorAlexander Butenko <a.butenka@gmail.com>
Wed, 21 Jul 2010 14:35:47 +0000 (10:35 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 21 Jul 2010 21:39:34 +0000 (23:39 +0200)
midori/midori-browser.c
midori/midori-locationaction.c

index c5043f2eea43f52991d95dcae42291975b3e87f9..42d61e09515bc53caa361e4d3ddc46340c46c4a6 100644 (file)
@@ -609,9 +609,7 @@ midori_view_notify_title_cb (GtkWidget*     widget,
     uri = midori_view_get_display_uri (view);
     title = midori_view_get_display_title (view);
     action = _action_by_name (browser, "Location");
-    if (browser->maximum_history_age)
-        midori_location_action_set_title_for_uri (
-        MIDORI_LOCATION_ACTION (action), title, uri);
+
     if (midori_view_get_load_status (view) == MIDORI_LOAD_COMMITTED)
     {
         KatzeItem* item;
index de70b2c00a1fdebcd513ae4636b153adf10bcdc2..2ec6034b2f595e24c0596681eb7076d49758ede3 100644 (file)
@@ -1445,12 +1445,14 @@ void
 midori_location_action_set_uri (MidoriLocationAction* location_action,
                                 const gchar*          uri)
 {
+    gchar* escaped_uri;
+
     g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
     g_return_if_fail (uri != NULL);
 
-    katze_assign (location_action->uri, g_uri_unescape_string (uri, ""));
-
-    midori_location_action_set_text (location_action, uri);
+    escaped_uri = g_uri_unescape_string (uri, "");
+    midori_location_action_set_text (location_action, escaped_uri);
+    g_free (escaped_uri);
 }
 
 /**