[gnome-calendar] month-view: don't hide month view when dragging from popover



commit df40a4d8bf16626844d98ceada7a3e0c68dfc6f2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 7 11:01:32 2017 -0300

    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 b3488e5..7b2aa44 100644
--- a/data/ui/month-view.ui
+++ b/data/ui/month-view.ui
@@ -147,7 +147,7 @@
   <object class="GtkPopover" id="overflow_popover">
     <property name="can-focus">false</property>
     <property name="position">bottom</property>
-    <signal name="drag-motion" handler="cancel_dnd_from_overflow_popover" object="GcalMonthView" 
swapped="yes" />
+    <signal name="drag-motion" handler="cancel_dnd_from_overflow_popover" object="GcalMonthView" 
swapped="no" />
     <style>
       <class name="events" />
     </style>
diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c
index 6d809ae..8c3027e 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;
+
+  gtk_popover_popdown (popover);
 
-  return FALSE;
+  GCAL_RETURN (FALSE);
 }
 
 static gboolean


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