[gnome-games/wip/exalm/cache2: 4/23] collection-icon-view: Add invalidate_filter()



commit 001e849bedab0fb158cb4954b46167cb7252805b
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Oct 1 16:43:01 2018 +0500

    collection-icon-view: Add invalidate_filter()
    
    This will be used in the next commit to refresh "Unknown" developer filter
    each time a developer has loaded.

 src/ui/collection-icon-view.vala | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index f5e7e0d4..bdfde41d 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -8,7 +8,7 @@ private class Games.CollectionIconView : Gtk.Bin {
        public string filtering_text {
                set {
                        filtering_terms = value.split (" ");
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -17,7 +17,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                get { return _filtering_developer; }
                set {
                        _filtering_developer = value;
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -26,7 +26,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                get { return _filtering_platform; }
                set {
                        _filtering_platform = value;
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -106,6 +106,10 @@ private class Games.CollectionIconView : Gtk.Bin {
                is_active = false;
        }
 
+       public void invalidate_filter () {
+               flow_box.invalidate_filter ();
+       }
+
        public bool gamepad_button_press_event (Manette.Event event) {
                if (!get_mapped ())
                        return false;


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