summaryrefslogtreecommitdiff
path: root/shell/ev-window-title.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window-title.c')
-rw-r--r--shell/ev-window-title.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c
index 7b8c45e8..f200f849 100644
--- a/shell/ev-window-title.c
+++ b/shell/ev-window-title.c
@@ -74,7 +74,7 @@ get_filename_from_uri (const char *uri)
{
char *filename;
char *basename;
-
+
filename = g_uri_unescape_string (uri, NULL);
basename = g_path_get_basename (filename);
g_free(filename);
@@ -92,7 +92,7 @@ ev_window_title_sanitize_title (EvWindowTitle *window_title, char **title) {
backend = ev_backends_manager_get_document_module_name (window_title->document);
for (i = 0; i < G_N_ELEMENTS (bad_extensions); i++) {
- if (g_ascii_strcasecmp (bad_extensions[i].backend, backend) == 0 &&
+ if (g_ascii_strcasecmp (bad_extensions[i].backend, backend) == 0 &&
g_str_has_suffix (*title, bad_extensions[i].text)) {
char *new_title;
char *filename = get_filename_from_uri (window_title->uri);
@@ -109,7 +109,7 @@ ev_window_title_sanitize_title (EvWindowTitle *window_title, char **title) {
g_str_has_prefix (*title, bad_prefixes[i].text)) {
char *new_title;
int len = strlen(bad_prefixes[i].text);
-
+
new_title = g_strdup_printf ("%s", (*title) + len);
g_free (*title);
*title = new_title;