[gnome-music/wip/jfelder/gtk4-v3: 11/130] emptyview: Disable clamp visibility changes (FIXME)




commit c515434650327efae8f5d2698ae4974893ccfdaa
Author: Jean Felder <jfelder src gnome org>
Date:   Sat Jan 8 23:29:32 2022 +0100

    emptyview: Disable clamp visibility changes (FIXME)

 gnomemusic/views/emptyview.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/views/emptyview.py b/gnomemusic/views/emptyview.py
index 9f27e9fab..0dbdc328b 100644
--- a/gnomemusic/views/emptyview.py
+++ b/gnomemusic/views/emptyview.py
@@ -78,8 +78,8 @@ class EmptyView(Gtk.Stack):
 
         # Hack to get to AdwClamp, so it can be hidden for the
         # initial state.
-        child_of_child = self._status_page.get_child().get_child()
-        self._adw_clamp = child_of_child.get_child().get_children()[0]
+        # child_of_child = self._status_page.get_child().get_child()
+        # self._adw_clamp = child_of_child.get_child().get_children()[0]
 
         self._status_page.add(self._initial_state)
 
@@ -102,7 +102,7 @@ class EmptyView(Gtk.Stack):
         """
         self._state = value
 
-        self._adw_clamp.props.visible = True
+        # self._adw_clamp.props.visible = True
         self._initial_state.props.visible = False
 
         if self._state == EmptyView.State.EMPTY:
@@ -115,7 +115,7 @@ class EmptyView(Gtk.Stack):
             self._set_tracker_outdated_state()
 
     def _set_empty_state(self):
-        self._adw_clamp.props.visible = False
+        # self._adw_clamp.props.visible = False
         self._initial_state.props.visible = True
 
         self._description_label.props.label = self._content_text


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]