Philipp Hörist pushed to branch master at gajim / gajim
Commits: 4ef4e483 by Philipp Hörist at 2022-11-04T00:00:05+01:00 fix: Plugins: Replace usage of gui_extention_point()
Use the newer extension_point() call, which does not replay calls on plugin activation.
- - - - -
3 changed files:
- gajim/gtk/message_actions_box.py - gajim/gtk/message_input.py - gajim/gtk/tooltips.py
Changes:
===================================== gajim/gtk/message_actions_box.py ===================================== @@ -108,7 +108,7 @@ def __init__(self) -> None:
self._connect_actions()
- app.plugin_manager.gui_extension_point( + app.plugin_manager.extension_point( 'message_actions_box', self, self._ui.box)
def get_current_contact(self) -> ChatContactT:
===================================== gajim/gtk/message_input.py ===================================== @@ -112,7 +112,7 @@ def __init__(self) -> None: self._language_handler_id = self._init_spell_checker() app.settings.connect_signal('use_speller', self._on_toggle_spell_check)
- app.plugin_manager.gui_extension_point('message_input', self) + app.plugin_manager.extension_point('message_input', self)
@property def is_correcting(self) -> bool:
===================================== gajim/gtk/tooltips.py ===================================== @@ -118,7 +118,7 @@ def _populate_grid(self, contact: types.GroupchatParticipant) -> None: self._ui.avatar.show() self._ui.fillelement.show()
- app.plugin_manager.gui_extension_point( + app.plugin_manager.extension_point( 'gc_tooltip_populate', self, contact, self._ui.tooltip_grid)
def destroy(self) -> None: @@ -177,7 +177,7 @@ def _populate_grid(self, contact: types.BareContact) -> None:
self._append_pep_info(contact)
- app.plugin_manager.gui_extension_point( + app.plugin_manager.extension_point( 'roster_tooltip_populate', self, contact)
# This sets the bottom-most widget to expand, in case the avatar @@ -245,7 +245,7 @@ def _add_resources(self, contact: types.BareContact) -> None: idle_label.set_xalign(0) resource_box.add(idle_label)
- app.plugin_manager.gui_extension_point( + app.plugin_manager.extension_point( 'roster_tooltip_resource_populate', resource_box, resource)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/4ef4e483dca8e0efd37793d5b093c877a...