[recipes] shopping page: Don't accumulate removed ingredients
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] shopping page: Don't accumulate removed ingredients
- Date: Tue, 14 Mar 2017 03:31:17 +0000 (UTC)
commit b3272328f53b099a8f726fd0c96d73f5edd3eeeb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 13 23:29:33 2017 -0400
shopping page: Don't accumulate removed ingredients
We need to clear all the containers before populating
the page from the store.
src/gr-shopping-page.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-shopping-page.c b/src/gr-shopping-page.c
index 72b7ab4..30fe74f 100644
--- a/src/gr-shopping-page.c
+++ b/src/gr-shopping-page.c
@@ -863,6 +863,8 @@ gr_shopping_page_new (void)
void
gr_shopping_page_populate (GrShoppingPage *self)
{
+ container_remove_all (GTK_CONTAINER (self->ingredients_list));
+ container_remove_all (GTK_CONTAINER (self->removed_list));
container_remove_all (GTK_CONTAINER (self->recipe_list));
gr_recipe_search_stop (self->search);
gr_recipe_search_set_query (self->search, "is:shopping");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]