diff options
author | infirit <[email protected]> | 2014-12-10 02:05:23 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 02:05:23 +0100 |
commit | 00c3f80c246c9197464091dc47b7bf681d0e9ced (patch) | |
tree | 86b50eea328817fe045514fc5b0322d83b06595a | |
parent | db3f169a3b9aaced264a5cec39e41430e4b8040f (diff) | |
download | atril-00c3f80c246c9197464091dc47b7bf681d0e9ced.tar.bz2 atril-00c3f80c246c9197464091dc47b7bf681d0e9ced.tar.xz |
Add .png extension when saving images using DnD
Taken from evince commit: 7069b43e9a64be2d4e4509dffd0384dfcce59de4
From: Wouter Bolsterlee <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=643709
-rw-r--r-- | libdocument/ev-image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdocument/ev-image.c b/libdocument/ev-image.c index 1e112add..85530101 100644 --- a/libdocument/ev-image.c +++ b/libdocument/ev-image.c @@ -144,8 +144,8 @@ ev_image_save_tmp (EvImage *image, if (image->priv->tmp_uri) return image->priv->tmp_uri; - if ((fd = ev_mkstemp ("image.XXXXXX", &filename, &error)) == -1) - goto had_error; + if ((fd = ev_mkstemp ("image.XXXXXX.png", &filename, &error)) == -1) + goto had_error; gdk_pixbuf_save (pixbuf, filename, "png", &error, |