From 6199578ed18101c2245b3f2b28e0e579b6e59833 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Sat, 5 Oct 2024 23:29:53 +0100 Subject: chat: Improve system message handling Not 100% happy with how system messages are displayed. Need to find a better system for how to handle them. --- src/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index 1b45586..5a1427a 100644 --- a/src/main.py +++ b/src/main.py @@ -161,7 +161,6 @@ class WeegtkApplication(Adw.Application): def _parse_line(self, message): """Parse a WeeChat message with a buffer line.""" - # TODO implement text for chats for obj in message.objects: lines = [] if obj.objtype != 'hda' or obj.value['path'][-1] != 'line_data': @@ -182,7 +181,6 @@ class WeegtkApplication(Adw.Application): if message.msgid == 'listlines': lines.reverse() for line in lines: - #print(line) self.buffers[line[0]].display(*line[1]) def _parse_nicklist(self, message): @@ -325,6 +323,7 @@ class WeegtkApplication(Adw.Application): # Only make chats visible on main screen if True or buf.is_chat(): + test_label = Gtk.Label(label="Hello") self.props.active_window.stack.add_titled(buf, name=buf_name, title=buf_name) def buffer_input(self, source_object, full_name, text): -- cgit