[gnome-calendar/wip/gbsneto/dnd: 6/15] month-view: set as a drag destination
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/gbsneto/dnd: 6/15] month-view: set as a drag destination
- Date: Sat, 21 May 2016 21:52:55 +0000 (UTC)
commit 16c4657fd01035df01de63aa4715bbdfee6adad4
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]