summaryrefslogtreecommitdiff
path: root/plugins/python/cglimpse/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/cglimpse/core.py')
-rw-r--r--plugins/python/cglimpse/core.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/plugins/python/cglimpse/core.py b/plugins/python/cglimpse/core.py
index d2cfdc4..29fb535 100644
--- a/plugins/python/cglimpse/core.py
+++ b/plugins/python/cglimpse/core.py
@@ -1,5 +1,6 @@
from pychrysalide import PluginModule
+from pychrysalide.glibext import ConfigParam
from pychrysalide.gui import core
from .panel import CGlimpsePanel
@@ -13,7 +14,7 @@ class ContentGlimpse(PluginModule):
_version = '0.1'
_url = 'https://www.chrysalide.re/'
- _actions = ( )
+ _actions = ( PluginModule.PluginAction.PLUGIN_LOADED, PluginModule.PluginAction.PANEL_CREATION, )
def __init__(self):
@@ -22,3 +23,19 @@ class ContentGlimpse(PluginModule):
super(ContentGlimpse, self).__init__()
core.register_panel(CGlimpsePanel)
+
+
+ def _manage(self, action):
+ """React to several steps of the plugin life."""
+
+ CGlimpsePanel.setup_config(self.config)
+
+ return True
+
+
+ def _on_panel_creation(self, action, item):
+ """Get notified of a new panel creation."""
+
+ if type(item) == CGlimpsePanel:
+
+ item.attach_config(self.config)