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



commit 79d4f0d9f8fa0a1742b1dd23630c4fcf3fe6a8c5
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]