[recipes/list-new: 2/14] Add a query to match any recipe



commit e20ae69ac39221f41fed3aaa575b25234b6402b1
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 d44fb99..a68f46a 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -1698,6 +1698,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]