Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
-
febccf9f
by wurstsalat at 2022-07-12T18:00:49+02:00
3 changed files:
Changes:
| ... | ... | @@ -327,9 +327,6 @@ def _item_has_focus(item: Gtk.ModelButton) -> bool: |
| 327 | 327 | flags = item.get_state_flags()
|
| 328 | 328 | return 'GTK_STATE_FLAG_FOCUSED' in str(flags)
|
| 329 | 329 | |
| 330 | - def process_outgoing_message(self,
|
|
| 331 | - contact_name: str,
|
|
| 332 | - highlight: bool
|
|
| 333 | - ) -> None:
|
|
| 330 | + def process_message(self, contact_name: str, highlight: bool) -> None:
|
|
| 334 | 331 | if isinstance(self._contact, GroupchatContact):
|
| 335 | 332 | self._nick_completion.process_message(contact_name, highlight) |
| ... | ... | @@ -350,7 +350,7 @@ def add_message(self, |
| 350 | 350 | text, self.contact.nickname, self._client.get_own_jid().bare)
|
| 351 | 351 | |
| 352 | 352 | # TODO
|
| 353 | - # self.msg_textview.process_outgoing_message(contact, highlight)
|
|
| 353 | + # self.msg_textview.process_message(contact, highlight)
|
|
| 354 | 354 | |
| 355 | 355 | BaseControl.add_message(self,
|
| 356 | 356 | text,
|
| ... | ... | @@ -336,12 +336,8 @@ def undo(self, *args: Any) -> None: |
| 336 | 336 | buf.set_text(self._undo_list.pop())
|
| 337 | 337 | self.undo_pressed = True
|
| 338 | 338 | |
| 339 | - def process_outgoing_message(self,
|
|
| 340 | - contact_name: str,
|
|
| 341 | - highlight: bool
|
|
| 342 | - ) -> None:
|
|
| 343 | - self._chat_action_processor.process_outgoing_message(
|
|
| 344 | - contact_name, highlight)
|
|
| 339 | + def process_message(self, contact_name: str, highlight: bool) -> None:
|
|
| 340 | + self._chat_action_processor.process_message(contact_name, highlight)
|
|
| 345 | 341 | |
| 346 | 342 | def _on_populate_popup(self,
|
| 347 | 343 | _textview: MessageInputTextView,
|