GUI extension points removal working properly now.

This commit is contained in:
Mateusz Biliński 2008-08-03 22:02:53 +00:00
parent 16ac65e58b
commit d1d3cc9bbd
4 changed files with 7 additions and 9 deletions

View File

@ -203,11 +203,6 @@ class GajimPluginConfigDialog(gtk.Dialog):
self.child.set_spacing(3)
self.init()
#label = gtk.Label(_('<b>%s Configuration</b>') % (plugin.name))
#label.set_markup(label.get_label())
#self.child.pack_start(label, False, False)
@log_calls('GajimPluginConfigDialog')
def run(self, parent=None):
@ -222,4 +217,4 @@ class GajimPluginConfigDialog(gtk.Dialog):
pass
def on_run(self):
pass
pass

View File

@ -50,7 +50,7 @@ class log_calls(object):
Decorator class for functions to easily log when they are entered and left.
'''
filter_out_classes = ['GajimPlugin', 'GajimPluginConfig',
filter_out_classes = ['GajimPlugin', 'GajimPluginConfig', 'PluginManager',
'GajimPluginConfigDialog', 'PluginsWindow']
'''
List of classes from which no logs should be emited when methods are called,

View File

@ -193,7 +193,7 @@ class GajimPluginConfig(UserDict.DictMixin):
@log_calls('GajimPluginConfig')
def save(self):
self.data.sync()
log.debug(str(self.data))
#log.debug(str(self.data))
@log_calls('GajimPluginConfig')
def load(self):

View File

@ -200,7 +200,10 @@ class PluginManager(object):
extension point name) to identify element to be removed.
:type args: tuple
'''
log.debug('name: %s\n args: %s'%(gui_extpoint_name, args))
if gui_extpoint_name in self.gui_extension_points:
log.debug('Removing GUI extpoint\n name: %s\n args: %s'%(gui_extpoint_name, args))
self.gui_extension_points[gui_extpoint_name].remove(args)
@log_calls('PluginManager')