Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-09-07 10:37:26 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-09-07 10:37:26 (GMT)
commitad293ab856e842cbb8cc4f184716eafc767953af (patch)
treeeaf7a11642f928a06b795d598a2d235027bc03c1 /shell
parent8ae55be884974263f9347e2a7b1b3873404cdecb (diff)
Do not append the file extension twice when saving an image.
2008-09-07 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (image_save_dialog_response_cb): Do not append the file extension twice when saving an image. svn path=/trunk/; revision=3159
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index ed64145..df3c17c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5063,7 +5063,7 @@ image_save_dialog_response_cb (GtkWidget *fc,
}
extensions = gdk_pixbuf_format_get_extensions (format);
- if (g_str_has_suffix(uri, extensions[0])) {
+ if (!g_str_has_suffix (uri, extensions[0])) {
gchar *uri_extension;
uri_extension = g_strconcat (uri, ".", extensions[0], NULL);
@@ -5072,7 +5072,7 @@ image_save_dialog_response_cb (GtkWidget *fc,
} else {
target_file = g_file_new_for_uri (uri);
}
- g_strfreev(extensions);
+ g_strfreev (extensions);
g_free (uri);
is_native = g_file_is_native (target_file);