diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 41a4dfe16..c6b4c1387 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported ScreenshotService, ScreenshotUI, showScreenshotUI */ -const { Clutter, Gio, GObject, GLib, Meta, Shell, St } = imports.gi; +const { Clutter, Gio, GObject, GLib, Gtk, Meta, Shell, St } = imports.gi; const GrabHelper = imports.ui.grabHelper; const Layout = imports.ui.layout; @@ -1586,6 +1586,9 @@ class ScreenshotUI extends St.Widget { } } + // Add it to recent files. + Gtk.RecentManager.get_default().add_item(file.get_uri()); + // Show a notification. const source = new MessageTray.Source( // Translators: notification source name.