[gnome-games] collection-icon-view: Use game_filter instead of filtering_(developer|platform)
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-icon-view: Use game_filter instead of filtering_(developer|platform)
- Date: Tue, 8 Jan 2019 10:10:40 +0000 (UTC)
commit 7af7fefb11e574ec2f5d6f825073b7d0cc8ff3ac
Author: Yetizone <andreii lisita gmail com>
Date: Fri Dec 21 13:57:05 2018 +0200
collection-icon-view: Use game_filter instead of filtering_(developer|platform)
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 438126eb..7029a2f2 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -242,12 +242,7 @@ private class Games.CollectionIconView : Gtk.Bin {
}
private bool filter_game (Game game) {
- if (filtering_developer != null &&
- filtering_developer.get_developer () != game.get_developer ().get_developer ())
- return false;
-
- if (filtering_platform != null &&
- filtering_platform.get_name () != game.get_platform ().get_name ())
+ if (game_filter != null && !game_filter (game))
return false;
if (filtering_terms.length != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]