[gnome-boxes] actions-popover: Append extension to screenshot filenames



commit e46762e9f290679e123b03ad835f683455eb6351
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Oct 20 14:03:08 2017 +0200

    actions-popover: Append extension to screenshot filenames
    
    Despite being png files, the screenshots taken with the
    "Take Screenshot" option don't have the .png filename
    extension.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789221

 src/actions-popover.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 1f7b6ce..c3d04b4 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -123,7 +123,7 @@ private class Boxes.ActionsPopover: Gtk.Popover {
         var machine = window.current_item as Machine;
         try {
             Gdk.Pixbuf pixbuf = machine.display.get_pixbuf (0);
-            pixbuf.save (get_screenshot_filename (), "png");
+            pixbuf.save (get_screenshot_filename () + ".png", "png");
         } catch (GLib.Error error) {
             warning (error.message);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]