Philipp Hörist pushed to branch newcontrol at gajim / gajim


Commits:
1a607394 by lovetox at 2022-07-13T23:27:49+02:00
Add empty page to controlstack

- - - - -


1 changed file:

- gajim/gtk/control_stack.py


Changes:

=====================================
gajim/gtk/control_stack.py
=====================================
@@ -38,6 +38,8 @@ def __init__(self):
         self.set_vexpand(True)
         self.set_hexpand(True)
 
+        self.add_named(Gtk.Box(), 'empty')
+
         self.show_all()
         self._controls: dict[tuple[str, JID], ControlT] = {}
         self._current_control: Optional[ControlT] = None
@@ -122,6 +124,7 @@ def is_chat_loaded(self, account: str, jid: JID) -> bool:
         return control.is_chat_loaded
 
     def clear(self) -> None:
+        self.set_visible_child_name('empty')
         self._current_control = None
 
     def process_event(self, event: Any) -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1a607394f47ef40fc6dd67388f2273537e00fe0c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1a607394f47ef40fc6dd67388f2273537e00fe0c
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