[Dicson] Add gui extension point for groupchat control creation. Fixes #5975
This commit is contained in:
parent
5ac4104326
commit
ea804e69f9
1 changed files with 9 additions and 0 deletions
|
@ -402,6 +402,10 @@ class GroupchatControl(ChatControlBase):
|
||||||
self.conv_textview.tv.grab_focus()
|
self.conv_textview.tv.grab_focus()
|
||||||
self.widget.show_all()
|
self.widget.show_all()
|
||||||
|
|
||||||
|
# PluginSystem: adding GUI extension point for this GroupchatControl
|
||||||
|
# instance object
|
||||||
|
gajim.plugin_manager.gui_extension_point('groupchat_control', self)
|
||||||
|
|
||||||
def tree_compare_iters(self, model, iter1, iter2):
|
def tree_compare_iters(self, model, iter1, iter2):
|
||||||
"""
|
"""
|
||||||
Compare two iters to sort them
|
Compare two iters to sort them
|
||||||
|
@ -1681,6 +1685,11 @@ class GroupchatControl(ChatControlBase):
|
||||||
# to let it remove it's GUI extension points
|
# to let it remove it's GUI extension points
|
||||||
super(GroupchatControl, self).shutdown()
|
super(GroupchatControl, self).shutdown()
|
||||||
|
|
||||||
|
# PluginSystem: removing GUI extension points connected with
|
||||||
|
# GrouphatControl instance object
|
||||||
|
gajim.plugin_manager.remove_gui_extension_point('groupchat_control',
|
||||||
|
self)
|
||||||
|
|
||||||
# Preventing autorejoin from being activated
|
# Preventing autorejoin from being activated
|
||||||
self.autorejoin = False
|
self.autorejoin = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue