[recipes/list-all: 5/8] Add a query to match any recipe
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/list-all: 5/8] Add a query to match any recipe
- Date: Tue, 21 Feb 2017 02:29:56 +0000 (UTC)
commit 46554412c19ea47ece9f82c26e24adb480df793c
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 20 21:26:38 2017 -0500
Add a query to match any recipe
This will be useful in future commits.
src/gr-recipe-store.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-recipe-store.c b/src/gr-recipe-store.c
index 4eb3771..3b155fd 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -1666,6 +1666,8 @@ static gboolean
recipe_matches (GrRecipeSearch *search,
GrRecipe *recipe)
{
+ if (strcmp (search->query[0], "is:any") == 0)
+ return TRUE;
if (strcmp (search->query[0], "is:favorite") == 0)
return gr_recipe_store_is_favorite (search->store, recipe);
else if (strcmp (search->query[0], "is:shopping") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]