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.
This commit is contained in:
Georges Basile Stavracas Neto
2016-05-21 18:54:47 -03:00
parent dc65a9e906
commit d0821d7e4d
+7
View File
@@ -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