[recipes] Make sure to hide the cooking cancel confirmation dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Make sure to hide the cooking cancel confirmation dialog
- Date: Tue, 14 Mar 2017 01:11:56 +0000 (UTC)
commit e43f5a4314087393617e5810509733879af60a2a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 13 21:09:09 2017 -0400
Make sure to hide the cooking cancel confirmation dialog
Just like we hide the help overlay when entering cooking
mode, we need to make sure that the confirmation dialog
is hidden initially.
src/gr-cooking-page.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-cooking-page.c b/src/gr-cooking-page.c
index a7df7bd..4627473 100644
--- a/src/gr-cooking-page.c
+++ b/src/gr-cooking-page.c
@@ -160,9 +160,14 @@ on_confirm_revealed (GrCookingPage *page)
}
static void
-hide_confirm (GrCookingPage *page)
+hide_confirm (GrCookingPage *page,
+ gboolean fade)
{
+ if (!fade)
+ gtk_revealer_set_transition_type (GTK_REVEALER (page->confirm_revealer),
GTK_REVEALER_TRANSITION_TYPE_NONE);
gtk_revealer_set_reveal_child (GTK_REVEALER (page->confirm_revealer), FALSE);
+ if (!fade)
+ gtk_revealer_set_transition_type (GTK_REVEALER (page->confirm_revealer),
GTK_REVEALER_TRANSITION_TYPE_CROSSFADE);
}
static void
@@ -201,7 +206,7 @@ confirm_close (GrCookingPage *page)
static void
keep_cooking (GrCookingPage *page)
{
- hide_confirm (page);
+ hide_confirm (page, TRUE);
}
static void
@@ -229,6 +234,7 @@ set_cooking (GrCookingPage *page,
if (cooking) {
hide_overlay (page, FALSE);
+ hide_confirm (page, FALSE);
count = get_cooking_overlay_count ();
set_cooking_overlay_count (count + 1);
if (count < 3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]