summaryrefslogtreecommitdiff
path: root/plugins/python/scripting
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-12-31 11:40:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-12-31 11:40:42 (GMT)
commit8965133f188c817cbdf4fcf9d1f1b60462bbfe7d (patch)
tree96193fdbcb692790bb2ffe4de7b2020b0dbf528d /plugins/python/scripting
parent93e9ab125bced1374c7d4a03e5bd11a0dc1b2968 (diff)
Offered a custom configuration facility to each plugin.
Diffstat (limited to 'plugins/python/scripting')
-rw-r--r--plugins/python/scripting/core.py8
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."""