Commit c18c38c3 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

use the default Gtk RecentManager as explain in doc

parent 93723e9a
......@@ -16,7 +16,7 @@ try:
# Use Gio to ensure file exists and retrieve content type
file = Gio.File.new_for_path(filename)
info = file.query_info(Gio.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, Gio.FileQueryInfoFlags.NONE)
manager = Gtk.RecentManager()
manager = Gtk.RecentManager.get_default()
recent_data = Gtk.RecentData()
recent_data.app_name = "vim"
recent_data.mime_type = info.get_content_type()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment