Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
02cf35e7
by wurstsalat at 2022-08-15T21:13:53+00:00
3 changed files:
Changes:
| ... | ... | @@ -229,6 +229,9 @@ def show_chat(self, account: str, jid: JID) -> None: |
| 229 | 229 | self.set_transition_type(Gtk.StackTransitionType.NONE)
|
| 230 | 230 | self.set_visible_child_name('controls')
|
| 231 | 231 | |
| 232 | + app.plugin_manager.extension_point(
|
|
| 233 | + 'switch_contact', self._current_contact)
|
|
| 234 | + |
|
| 232 | 235 | if old_primary_clipboard is not None:
|
| 233 | 236 | GLib.idle_add(clipboard.set_text, # pyright: ignore
|
| 234 | 237 | old_primary_clipboard,
|
| ... | ... | @@ -135,6 +135,9 @@ def __init__(self) -> None: |
| 135 | 135 | ('message-sent', ged.GUI2, self._on_message_sent)
|
| 136 | 136 | ])
|
| 137 | 137 | |
| 138 | + app.plugin_manager.gui_extension_point(
|
|
| 139 | + 'message_actions_box', self, self._ui.box)
|
|
| 140 | + |
|
| 138 | 141 | def get_current_contact(self) -> ChatContactT:
|
| 139 | 142 | assert self._contact is not None
|
| 140 | 143 | return self._contact
|
| ... | ... | @@ -93,6 +93,8 @@ def __init__(self) -> None: |
| 93 | 93 | self.connect('destroy', self._on_destroy)
|
| 94 | 94 | self.connect('populate-popup', self._on_populate_popup)
|
| 95 | 95 | |
| 96 | + app.plugin_manager.gui_extension_point('message_input', self)
|
|
| 97 | + |
|
| 96 | 98 | def switch_contact(self, contact: ChatContactT) -> None:
|
| 97 | 99 | if self._contact is not None:
|
| 98 | 100 | account = self._contact.account
|