[recipes/shopping-list: 8/13] Support querying the shopping list
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [recipes/shopping-list: 8/13] Support querying the shopping list
 
- Date: Sat, 14 Jan 2017 14:22:48 +0000 (UTC)
 
commit ffd3a52b18546c51eeccd91633fca19b99276988
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jan 8 09:20:11 2017 -0500
    Support querying the shopping list
    
    This will soon be used to display the shopping list.
 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 9d335ee..3f11985 100644
--- a/src/gr-recipe-store.c
+++ b/src/gr-recipe-store.c
@@ -1686,6 +1686,8 @@ recipe_matches (GrRecipeSearch *search,
 {
         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)
+                return gr_recipe_store_is_in_shopping (search->store, recipe);
         else
                 return gr_recipe_matches (recipe, (const char **)search->query);
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]