From d0821d7e4df0a0978e35789eb5c5e4e1e8289a2b Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 21 May 2016 11:29:41 -0300 Subject: [PATCH] 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 file changed, 7 insertions(+) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index c300285f..9a031611 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