Index: src/interface.py
===================================================================
--- src/interface.py (revision 844)
+++ src/interface.py (working copy)
@@ -842,7 +842,7 @@
self.manager.apply_queue()
# Handle the events
- self.manager.handle_events()
+ events=self.manager.handle_events()
# Make sure that the interface still exists
try:
@@ -899,7 +899,7 @@
self.tray_icon.set_tooltip(msg)
#Update any active plugins
- self.plugins.update_active_plugins()
+ self.plugins.update_active_plugins(events)
# Put the generated message into the statusbar
# This gives plugins a chance to write to the
Index: src/plugins.py
===================================================================
--- src/plugins.py (revision 844)
+++ src/plugins.py (working copy)
@@ -91,11 +91,14 @@
def configure_plugin(self, name):
self.enabled_plugins[name].configure()
- def update_active_plugins(self):
+ def update_active_plugins(self,events):
for name in self.enabled_plugins.keys():
plugin = self.enabled_plugins[name]
if 'update' in dir(plugin):
plugin.update()
+ #having two methods for not breaking compatibility
+ if 'notify' in dir(plugin):
+ plugin.notify(events)
def shutdown_all_plugins(self):
for name in self.enabled_plugins.keys():