[gnome-music/wip/jfelder/gtk4-v3: 90/108] emptyview: Reinstate the old behaviour
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 90/108] emptyview: Reinstate the old behaviour
- Date: Fri, 11 Feb 2022 11:10:32 +0000 (UTC)
commit af5f82d233a4721c93f79617fe149c8dd1a80956
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Feb 10 11:17:10 2022 +0100
emptyview: Reinstate the old behaviour
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 45a7a5fe5..e1dc068a2 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_first_child().get_first_child()
+ self._adw_clamp = child_of_child.get_first_child().get_first_child()
self._status_page.set_child(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]