[gnome-music/wip/jfelder/gtk4-v3: 90/169] searchview: Remove unneeded visibility change




commit 64031c0568fff44cc3a798567c1d56a9532e889e
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Feb 2 23:57:53 2022 +0100

    searchview: Remove unneeded visibility change

 gnomemusic/views/searchview.py | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 2eeea6be7..168b07599 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -206,11 +206,6 @@ class SearchView(Gtk.Stack):
         nr_albums = self._album_model.get_n_items()
         self._view_all_albums.props.visible = (nr_albums > model.get_n_items())
 
-        def set_child_visible(child):
-            child.props.visible = True
-
-        self._album_flowbox.foreach(set_child_visible)
-
     def _on_artist_model_items_changed(self, model, position, removed, added):
         items_found = model.get_n_items() > 0
         self._artist_header.props.visible = items_found
@@ -221,11 +216,6 @@ class SearchView(Gtk.Stack):
         self._view_all_artists.props.visible = (
             nr_artists > model.get_n_items())
 
-        def set_child_visible(child):
-            child.props.visible = True
-
-        self._artist_flowbox.foreach(set_child_visible)
-
     def _on_model_items_changed(self, model, position, removed, added):
         items_found = model.get_n_items() > 0
         self._songs_header.props.visible = items_found


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