[gnome-calendar/gnome-3-22] window: show popover with a nice animation



commit 7d9739311a425a2ebdb6020aa807a6da2292eb1a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Mar 27 08:17:12 2017 -0300

    window: show popover with a nice animation

 src/gcal-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index f4a4945..85c799f 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -702,7 +702,7 @@ set_new_event_mode (GcalWindow *window,
   /* for now we relaunch the new-event widget */
   if (!enabled && gtk_widget_is_visible (window->quick_add_popover))
     {
-      gtk_widget_set_visible (window->quick_add_popover, FALSE);
+      gtk_popover_popdown (GTK_POPOVER (window->quick_add_popover));
     }
 }
 
@@ -750,7 +750,7 @@ show_new_event_widget (GcalView   *view,
   rect.height = 1;
 
   gtk_popover_set_pointing_to (GTK_POPOVER (window->quick_add_popover), &rect);
-  gtk_widget_show (window->quick_add_popover);
+  gtk_popover_popup (GTK_POPOVER (window->quick_add_popover));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]