GNOME Bugzilla – Bug 524218
API needs more convenience functions
Last modified: 2019-03-23 20:47:06 UTC
The plugin API needs more direct access to menu operations. For example, if I want to invoke the save file behavior I do this: self.menubar = self.window.get_children()[0].get_children()[0] self.save_menu = self.menubar.get_children()[0].get_submenu().get_children()[9] self.save_menu.activate() It would be better to have a save_action_on_document(document) convenience function. Other information:
You can use the UIManager API for that: window.get_ui_manager().get_action('/MenuBar/FileMenu/FileSaveMenu').activate()