[gnome-games] collection-icon-view: Use Game.matches_search_terms() in filter_game()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-icon-view: Use Game.matches_search_terms() in filter_game()
- Date: Tue, 8 Jan 2019 10:11:01 +0000 (UTC)
commit 7b1d556207dbab48891f4a0af3272ad10dd41ad5
Author: Yetizone <andreii lisita gmail com>
Date: Mon Dec 31 16:42:43 2018 +0200
collection-icon-view: Use Game.matches_search_terms() in filter_game()
src/ui/collection-icon-view.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 9278fb38..c7384884 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -231,12 +231,7 @@ private class Games.CollectionIconView : Gtk.Bin {
if (game_filter != null && !game_filter (game))
return false;
- if (filtering_terms.length != 0)
- foreach (var term in filtering_terms)
- if (!(term.casefold () in game.name.casefold ()))
- return false;
-
- return true;
+ return game.matches_search_terms (filtering_terms);
}
private int sort_boxes (Gtk.FlowBoxChild child1, Gtk.FlowBoxChild child2) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]