GUI extension points removal working properly now.
This commit is contained in:
parent
16ac65e58b
commit
d1d3cc9bbd
4 changed files with 7 additions and 9 deletions
|
@ -204,11 +204,6 @@ class GajimPluginConfigDialog(gtk.Dialog):
|
||||||
|
|
||||||
self.init()
|
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')
|
@log_calls('GajimPluginConfigDialog')
|
||||||
def run(self, parent=None):
|
def run(self, parent=None):
|
||||||
self.reparent(parent)
|
self.reparent(parent)
|
||||||
|
|
|
@ -50,7 +50,7 @@ class log_calls(object):
|
||||||
Decorator class for functions to easily log when they are entered and left.
|
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']
|
'GajimPluginConfigDialog', 'PluginsWindow']
|
||||||
'''
|
'''
|
||||||
List of classes from which no logs should be emited when methods are called,
|
List of classes from which no logs should be emited when methods are called,
|
||||||
|
|
|
@ -193,7 +193,7 @@ class GajimPluginConfig(UserDict.DictMixin):
|
||||||
@log_calls('GajimPluginConfig')
|
@log_calls('GajimPluginConfig')
|
||||||
def save(self):
|
def save(self):
|
||||||
self.data.sync()
|
self.data.sync()
|
||||||
log.debug(str(self.data))
|
#log.debug(str(self.data))
|
||||||
|
|
||||||
@log_calls('GajimPluginConfig')
|
@log_calls('GajimPluginConfig')
|
||||||
def load(self):
|
def load(self):
|
||||||
|
|
|
@ -200,7 +200,10 @@ class PluginManager(object):
|
||||||
extension point name) to identify element to be removed.
|
extension point name) to identify element to be removed.
|
||||||
:type args: tuple
|
: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')
|
@log_calls('PluginManager')
|
||||||
|
|
Loading…
Add table
Reference in a new issue