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



commit a3945073f94db682318e47b5174ec677e05bf541
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 572a1784..098340c1 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -10,7 +10,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                        if (value != null)
                                filtering_terms = value.split (" ");
 
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -19,7 +19,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                get { return _filtering_developer; }
                set {
                        _filtering_developer = value;
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -28,7 +28,7 @@ private class Games.CollectionIconView : Gtk.Bin {
                get { return _filtering_platform; }
                set {
                        _filtering_platform = value;
-                       flow_box.invalidate_filter ();
+                       invalidate_filter ();
                }
        }
 
@@ -108,6 +108,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]