Daniel Brötzmann pushed to branch unify-control at gajim / gajim


Commits:
8102160e by wurstsalat at 2022-08-09T20:27:05+02:00
fix: GroupchatRoster: Fix displaying roster on first contact switch

- - - - -
d8132238 by wurstsalat at 2022-08-09T20:33:48+02:00
imprv: GroupchatRoster: Remove scrolled shadow

- - - - -


2 changed files:

- gajim/data/gui/groupchat_roster.ui
- gajim/gtk/groupchat_roster.py


Changes:

=====================================
gajim/data/gui/groupchat_roster.ui
=====================================
@@ -18,7 +18,6 @@
     <property name="visible">True</property>
     <property name="can-focus">True</property>
     <property name="hscrollbar-policy">never</property>
-    <property name="shadow-type">in</property>
     <child>
       <object class="GtkTreeView" id="roster_treeview">
         <property name="visible">True</property>


=====================================
gajim/gtk/groupchat_roster.py
=====================================
@@ -110,7 +110,6 @@ def __init__(self) -> None:
             ('theme-update', ged.GUI2, self._on_theme_update),
         ])
 
-        self.set_no_show_all(True)
         self.set_reveal_child(
             not app.settings.get('hide_groupchat_occupants_list'))
 
@@ -136,7 +135,8 @@ def switch_contact(self, contact: types.ChatContactT) -> 
None:
             self.clear()
 
         is_groupchat = isinstance(contact, GroupchatContact)
-        self.set_visible(is_groupchat)
+        hide_roster = app.settings.get('hide_groupchat_occupants_list')
+        self.set_visible(is_groupchat and not hide_roster)
         if not is_groupchat:
             return
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/7066d32baa6256987c0d14787307700d6f1a0a8f...d81322384b068053899b5896f8e8fae6921fa945

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/7066d32baa6256987c0d14787307700d6f1a0a8f...d81322384b068053899b5896f8e8fae6921fa945
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to