]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Use g_uri_unescape_string() instead of our own implementation
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 7 Oct 2009 16:19:04 +0000 (18:19 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 7 Oct 2009 16:39:31 +0000 (18:39 +0200)
shell/ev-window-title.c
shell/ev-window.c

index 2e28c63b002f8199e2f00bf4120abda268bd6c13..ca2429b5656b6edb563e74dde5a80d2d9957c9ca 100644 (file)
@@ -75,7 +75,7 @@ get_filename_from_uri (const char *uri)
        char *filename;
        char *basename;
        
-       filename = escape_uri_for_display (uri);
+       filename = g_uri_unescape_string (uri, NULL);
        basename = g_path_get_basename (filename);
        g_free(filename);
 
index 610a18e793b8a03550f3c26da83d07d00211b219..f76d5af68cf373fc00f3c3a4851d6458535bbbdd 100644 (file)
@@ -1560,7 +1560,7 @@ show_loading_progress (EvWindow *ev_window)
        if (ev_window->priv->message_area)
                return FALSE;
 
-       display_name = escape_uri_for_display (ev_window->priv->uri);
+       display_name = g_uri_unescape_string (ev_window->priv->uri, NULL);
        text = g_strdup_printf (_("Loading document from ā€œ%sā€"),
                                display_name);