[recipes] Fix the cooking cancel confirmation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix the cooking cancel confirmation
- Date: Tue, 14 Mar 2017 01:12:01 +0000 (UTC)
commit 17e76b22a5b1701307b3eb186d4d4187a8973b3b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 13 21:10:26 2017 -0400
Fix the cooking cancel confirmation
I was trying in a silly way to figure out if the cooking view
has any running timers, and got it wrong. Just use the existing
cooking view API for this purpose.
src/gr-cooking-page.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gr-cooking-page.c b/src/gr-cooking-page.c
index 4627473..98ab9f3 100644
--- a/src/gr-cooking-page.c
+++ b/src/gr-cooking-page.c
@@ -254,12 +254,9 @@ set_cooking (GrCookingPage *page,
gr_window_set_fullscreen (GR_WINDOW (window), TRUE);
}
else {
- GList *children;
gboolean has_timers;
- children = gtk_container_get_children (GTK_CONTAINER (page->mini_timer_box));
- has_timers = children != NULL;
- g_list_free (children);
+ has_timers = gr_cooking_view_has_active_timers (GR_COOKING_VIEW (page->cooking_view));
if (has_timers)
confirm_close (page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]