From 00c3f80c246c9197464091dc47b7bf681d0e9ced Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 10 Dec 2014 02:05:23 +0100 Subject: Add .png extension when saving images using DnD Taken from evince commit: 7069b43e9a64be2d4e4509dffd0384dfcce59de4 From: Wouter Bolsterlee Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=643709 --- libdocument/ev-image.c | 4 ++-- 1 file 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, -- cgit v1.2.1