Files
2019-01-02 14:53:58 -05:00

9 lines
353 B
Python

recent = Gtk.Menu.new()
# Add a number of menu items where each corresponds to one recent file.
icon_theme = Gtk.IconTheme.get_default()
icon = icon_theme.load_icon("document-open", -1,
Gtk.IconLookupFlags.FORCE_SIZE)
image = Gtk.Image.new_from_pixbuf(icon)
open = Gtk.MenuToolButton.new(image, label)
open.set_menu(recent)