Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c9fda87f by lovetox at 2022-08-15T23:04:20+02:00
cfix: Use CommandOutputRow for chat command errors
- - - - -
2 changed files:
- gajim/gtk/chat_stack.py
- gajim/gtk/control.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -742,14 +742,14 @@ def _on_command_error(self,
message_actions_box: MessageActionsBox,
error: str) -> None:
- self._chat_control.add_info_message(error)
+ self._chat_control.add_command_output(error, True)
def _on_command_not_found(self,
message_actions_box: MessageActionsBox,
error: str
) -> None:
- self._chat_control.add_info_message(error)
+ self._chat_control.add_command_output(error, True)
class ChatPlaceholderBox(Gtk.Box):
=====================================
gajim/gtk/control.py
=====================================
@@ -507,6 +507,9 @@ def get_our_nick(self) -> str:
def _allow_add_message(self) -> bool:
return self._scrolled_view.get_lower_complete()
+ def add_command_output(self, text: str, is_error: bool) -> None:
+ self.conversation_view.add_command_output(text, is_error)
+
def add_info_message(self,
text: str,
timestamp: Optional[float] = None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c9fda87faa2b7a34b0717bc46b8bda02d7e6b7d1
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c9fda87faa2b7a34b0717bc46b8bda02d7e6b7d1
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits