Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-10-02 20:59:30 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-10-02 20:59:30 +0300
commit66a6d633f6061e9b967d629703fd56f43da658ea (patch)
tree94db76aadc28fdbf5ebbe2e6a7a7a98f17d5a5a4
parentc63aa71b0d66f23a130ae7b49b98ecbe537e7698 (diff)
refactor: ChatListRow: Make row headers private attributes
-rw-r--r--gajim/gtk/chat_list_row.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gajim/gtk/chat_list_row.py b/gajim/gtk/chat_list_row.py
index 84152d88e..72766abd6 100644
--- a/gajim/gtk/chat_list_row.py
+++ b/gajim/gtk/chat_list_row.py
@@ -78,8 +78,8 @@ class ChatListRow(Gtk.ListBoxRow):
self.type = type_
self.position = position
- self.conversations_label = ConversationsHeader()
- self.pinned_label = PinnedHeader()
+ self._conversations_label = ConversationsHeader()
+ self._pinned_label = PinnedHeader()
self._client = app.get_client(account)
self.contact = self._client.get_module('Contacts').get_contact(jid)
@@ -110,6 +110,7 @@ class ChatListRow(Gtk.ListBoxRow):
self.timestamp: float = 0
self.stanza_id: Optional[str] = None
self.message_id: Optional[str] = None
+
self._unread_count: int = 0
self._needs_muc_highlight: bool = False
self._pinned: bool = pinned
@@ -227,9 +228,9 @@ class ChatListRow(Gtk.ListBoxRow):
if type_ is None:
self.set_header(None)
elif type_ is RowHeaderType.PINNED:
- self.set_header(self.pinned_label)
+ self.set_header(self._pinned_label)
else:
- self.set_header(self.conversations_label)
+ self.set_header(self._conversations_label)
@property
def is_pinned(self) -> bool: