From: Carlos Garcia Campos Date: Wed, 7 Oct 2009 16:19:04 +0000 (+0200) Subject: [shell] Use g_uri_unescape_string() instead of our own implementation X-Git-Tag: EVINCE_2_28_1~6 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ad34fdc26e124509cb7508fc6760e29dbdb26891;p=evince.git [shell] Use g_uri_unescape_string() instead of our own implementation --- diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c index baafa74f..fe930498 100644 --- a/shell/ev-window-title.c +++ b/shell/ev-window-title.c @@ -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); diff --git a/shell/ev-window.c b/shell/ev-window.c index cc1d183d..1eb7d08c 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1614,7 +1614,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);