Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
3dadbaa5 by wurstsalat at 2021-12-13T23:05:48+01:00
StatusIcon: Make lost connection more obvious

Fixes #10249

- - - - -
3040608c by wurstsalat at 2021-12-13T23:14:42+01:00
SearchView: Fix comparing rows in header_func

- - - - -


2 changed files:

- gajim/common/helpers.py
- gajim/gtk/search_view.py


Changes:

=====================================
gajim/common/helpers.py
=====================================
@@ -561,6 +561,8 @@ def play_sound_file(path_to_soundfile):
             log.error('Could not play sound: %s', error.message)
 
 def get_connection_status(account: str) -> str:
+    if not app.account_is_available(account):
+        return 'error'
     con = app.connections[account]
     if con.state.is_reconnect_scheduled:
         return 'error'


=====================================
gajim/gtk/search_view.py
=====================================
@@ -302,8 +302,9 @@ def __init__(self, account: str, jid: JID, timestamp: 
float) -> None:
 class CounterRow(Gtk.ListBoxRow):
     def __init__(self, count: int) -> None:
         Gtk.ListBoxRow.__init__(self)
+        self.set_activatable(False)
         self.type: str = 'counter'
-        self.jid = None
+        self.jid: str = ''  # Has to be there for header_func
         self.time: float = 0.0
         self.get_style_context().add_class('search-view-counter')
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/fc68a80408826e89a9af8225a084224a422c17d3...3040608ca0082422fe40402fec3dc03210136081

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/fc68a80408826e89a9af8225a084224a422c17d3...3040608ca0082422fe40402fec3dc03210136081
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

Reply via email to