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




commit e092cacc0ad485619da613392e73f505ab02d81f
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]