diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-31 11:40:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-31 11:40:42 (GMT) |
commit | 8965133f188c817cbdf4fcf9d1f1b60462bbfe7d (patch) | |
tree | 96193fdbcb692790bb2ffe4de7b2020b0dbf528d /plugins/python/scripting | |
parent | 93e9ab125bced1374c7d4a03e5bd11a0dc1b2968 (diff) |
Offered a custom configuration facility to each plugin.
Diffstat (limited to 'plugins/python/scripting')
-rw-r--r-- | plugins/python/scripting/core.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/python/scripting/core.py b/plugins/python/scripting/core.py index c46ef07..1b91688 100644 --- a/plugins/python/scripting/core.py +++ b/plugins/python/scripting/core.py @@ -19,7 +19,7 @@ class ScriptingEngine(PluginModule): _version = '0.1' _url = 'https://www.chrysalide.re/' - _actions = ( PluginModule.PluginAction.PLUGINS_LOADED, PluginModule.PluginAction.PANEL_CREATION ) + _actions = ( PluginModule.PluginAction.PLUGIN_LOADED, PluginModule.PluginAction.PANEL_CREATION ) _manager = None @@ -64,15 +64,17 @@ class ScriptingEngine(PluginModule): file_menu.insert(item, index) - def _notify_plugins_loaded(self, action): + def _manage(self, action): """Ack the full loading of all plugins.""" - if action == PluginModule.PluginAction.PLUGINS_LOADED: + if action == PluginModule.PluginAction.PLUGIN_LOADED: xbel = self.build_config_filename('recents.xbel', True) ScriptingEngine._manager = Gtk.RecentManager(filename=xbel) + return True + def _on_panel_creation(self, action, item): """Get notified of a new panel creation.""" |