year-view: make the year navigator a DnD dest

This way, we can drop events at the widget.
This commit is contained in:
Georges Basile Stavracas Neto
2016-05-21 18:54:47 -03:00
parent c2bf75d151
commit c7d92e9f37
+7
View File
@@ -1663,6 +1663,13 @@ gcal_year_view_init (GcalYearView *self)
gtk_list_box_set_header_func (GTK_LIST_BOX (self->events_sidebar), update_sidebar_headers, self, NULL);
gtk_list_box_set_sort_func (GTK_LIST_BOX (self->events_sidebar), sidebar_sort_func, NULL, NULL);
/* The year navigator is a DnD destination */
gtk_drag_dest_set (self->navigator,
0,
NULL,
0,
GDK_ACTION_COPY);
}
static void