From b3ba63eff5a989f9c348031c5cf3eadfe78404cf Mon Sep 17 00:00:00 2001 From: Neui Date: Fri, 19 Jun 2020 21:42:04 +0200 Subject: [PATCH] Export plugin: Make it clickable in the menu Looks like since the GTK3 Headerbar switch, the new menus use ModelButtons instead of the old MenuItems. --- GTG/plugins/export/export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GTG/plugins/export/export.py b/GTG/plugins/export/export.py index 339166fca7..6f0c76d9b8 100644 --- a/GTG/plugins/export/export.py +++ b/GTG/plugins/export/export.py @@ -180,8 +180,9 @@ def _init_gtk(self): """ Initialize all the GTK widgets """ self.menu_entry = False - self.menu_item = Gtk.MenuItem(_("Export the tasks currently listed")) - self.menu_item.connect('activate', self.show_dialog) + self.menu_item = Gtk.ModelButton() + self.menu_item.set_label(_("Export the tasks currently listed")) + self.menu_item.connect('clicked', self.show_dialog) self.menu_item.show() builder = Gtk.Builder()