[recipes] Don't forget to update the chef page
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Don't forget to update the chef page
- Date: Sun, 19 Feb 2017 19:28:13 +0000 (UTC)
commit 7858fdf94e54a78437e3caf01889495050d7ccef
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 19 14:26:30 2017 -0500
Don't forget to update the chef page
This was showing up when navigating to a recipe via the
chef page, and then deleting it: The chef page still shows
the deleted recipe.
src/gr-window.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 240928e..0a7ca32 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -275,6 +275,13 @@ visible_page_changed (GrWindow *window)
gr_edit_page_clear (GR_EDIT_PAGE (window->edit_page));
}
+ if (strcmp (visible, "chef") == 0) {
+ gr_list_page_repopulate (GR_LIST_PAGE (window->chef_page));
+ }
+ else {
+ gr_list_page_clear (GR_LIST_PAGE (window->chef_page));
+ }
+
if (strcmp (visible, "list") == 0) {
gr_list_page_repopulate (GR_LIST_PAGE (window->list_page));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]