Philipp Hörist pushed to branch master at gajim / gajim
Commits: 02cf35e7 by wurstsalat at 2022-08-15T21:13:53+00:00 refactor: Replace chat control plugin extension points - - - - - 3 changed files: - gajim/gtk/chat_stack.py - gajim/gtk/message_actions_box.py - gajim/gtk/message_input.py Changes: ===================================== gajim/gtk/chat_stack.py ===================================== @@ -229,6 +229,9 @@ def show_chat(self, account: str, jid: JID) -> None: self.set_transition_type(Gtk.StackTransitionType.NONE) self.set_visible_child_name('controls') + app.plugin_manager.extension_point( + 'switch_contact', self._current_contact) + if old_primary_clipboard is not None: GLib.idle_add(clipboard.set_text, # pyright: ignore old_primary_clipboard, ===================================== gajim/gtk/message_actions_box.py ===================================== @@ -135,6 +135,9 @@ def __init__(self) -> None: ('message-sent', ged.GUI2, self._on_message_sent) ]) + app.plugin_manager.gui_extension_point( + 'message_actions_box', self, self._ui.box) + def get_current_contact(self) -> ChatContactT: assert self._contact is not None return self._contact ===================================== gajim/gtk/message_input.py ===================================== @@ -93,6 +93,8 @@ def __init__(self) -> None: self.connect('destroy', self._on_destroy) self.connect('populate-popup', self._on_populate_popup) + app.plugin_manager.gui_extension_point('message_input', self) + def switch_contact(self, contact: ChatContactT) -> None: if self._contact is not None: account = self._contact.account View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/02cf35e7bc163b6b3fc63bced2ea8dc0d1737fb7 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/02cf35e7bc163b6b3fc63bced2ea8dc0d1737fb7 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits