[gnome-calendar/wip/gbsneto/dnd: 5/14] month-view: set as a drag destination



commit aecf01ed909877cb3bcf857e579cfda81021bd92
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat May 21 11:29:41 2016 -0300

    month-view: set as a drag destination
    
    The month view will be the first one to receive
    support for drag and drop. As such, it must be
    set as a drag destination.

 src/gcal-month-view.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index c300285..9a03161 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -883,6 +883,13 @@ gcal_month_view_init (GcalMonthView *self)
   gtk_container_add (GTK_CONTAINER (grid), priv->popover_title);
   gtk_container_add (GTK_CONTAINER (grid), priv->events_list_box);
   gtk_container_add (GTK_CONTAINER (grid), button);
+
+  /* Setup the month view as a drag n' drop destination */
+  gtk_drag_dest_set (GTK_WIDGET (self),
+                     0,
+                     NULL,
+                     0,
+                     GDK_ACTION_MOVE);
 }
 
 static void


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