From df40a4d8bf16626844d98ceada7a3e0c68dfc6f2 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 7 Oct 2017 11:01:32 -0300 Subject: [PATCH] month-view: don't hide month view when dragging from popover --- data/ui/month-view.ui | 2 +- src/views/gcal-month-view.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/data/ui/month-view.ui b/data/ui/month-view.ui index b3488e5b..7b2aa44c 100644 --- a/data/ui/month-view.ui +++ b/data/ui/month-view.ui @@ -147,7 +147,7 @@ false bottom - + diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c index 6d809ae2..8c3027e0 100644 --- a/src/views/gcal-month-view.c +++ b/src/views/gcal-month-view.c @@ -723,11 +723,13 @@ gcal_month_view_key_press (GtkWidget *widget, } static gboolean -cancel_dnd_from_overflow_popover (GtkWidget *popover) +cancel_dnd_from_overflow_popover (GtkPopover *popover) { - gtk_widget_hide (popover); + GCAL_ENTRY; - return FALSE; + gtk_popover_popdown (popover); + + GCAL_RETURN (FALSE); } static gboolean