[recipes] Update header bar in shopping list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Update header bar in shopping list
- Date: Sat, 4 Mar 2017 19:54:20 +0000 (UTC)
commit 01aab2c3e7efad42f4976e5fbc9bd21010206b66
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Sat Mar 4 23:00:57 2017 +0530
Update header bar in shopping list
Update the count of recipes in header bar after removing the recipes from the shopping list one by one
https://bugzilla.gnome.org/show_bug.cgi?id=779521
src/gr-shopping-page.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-shopping-page.c b/src/gr-shopping-page.c
index ab0caaa..50c1c69 100644
--- a/src/gr-shopping-page.c
+++ b/src/gr-shopping-page.c
@@ -118,8 +118,8 @@ recount_recipes (GrShoppingPage *page)
g_free (page->title);
page->title = g_strdup_printf (ngettext ("Buy Ingredients (%d recipe)",
- "Buy Ingredients (%d recipes)", page->recipe_count),
- page->recipe_count);
+ "Buy Ingredients (%d recipes)", count),
+ count);
g_object_notify (G_OBJECT (page), "title");
tmp = g_strdup_printf (ngettext ("%d Recipe marked for preparation",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]