diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-02-09 03:52:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-02-09 07:57:24 +0800 |
commit | 67ce5f3b140525c2f5944270a9383616f9d67923 (patch) | |
tree | 167788f4efa12f87ac04c474598d61b5ca446464 /calendar/gui/e-task-list-selector.c | |
parent | 9cd1f937a26363aa108f3d2b36606b167597a2eb (diff) | |
download | gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar.gz gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar.bz2 gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar.lz gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar.xz gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.tar.zst gsoc2013-evolution-67ce5f3b140525c2f5944270a9383616f9d67923.zip |
Add DnD support to e-selection.c.
Avoid listing calendar and directory targets explicitly, so that
e-selection.c contains the one and only master list. Still need
to figure out how to centralize "text/x-source-vcard".
Diffstat (limited to 'calendar/gui/e-task-list-selector.c')
-rw-r--r-- | calendar/gui/e-task-list-selector.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/calendar/gui/e-task-list-selector.c b/calendar/gui/e-task-list-selector.c index 34432b0ed4..317d7cae37 100644 --- a/calendar/gui/e-task-list-selector.c +++ b/calendar/gui/e-task-list-selector.c @@ -22,6 +22,7 @@ #include <string.h> #include <libecal/e-cal.h> +#include "e-util/e-selection.h" #include "calendar/common/authentication.h" #include "calendar/gui/comp-util.h" @@ -33,15 +34,6 @@ struct _ETaskListSelectorPrivate { gint dummy_value; }; -enum { - DND_TARGET_TYPE_CALENDAR_LIST -}; - -static GtkTargetEntry drag_types[] = { - { (gchar *) "text/calendar", 0, DND_TARGET_TYPE_CALENDAR_LIST }, - { (gchar *) "text/x-calendar", 0, DND_TARGET_TYPE_CALENDAR_LIST } -}; - static gpointer parent_class; static gboolean @@ -246,8 +238,9 @@ task_list_selector_init (ETaskListSelector *selector) gtk_drag_dest_set ( GTK_WIDGET (selector), GTK_DEST_DEFAULT_ALL, - drag_types, G_N_ELEMENTS (drag_types), - GDK_ACTION_COPY | GDK_ACTION_MOVE); + NULL, 0, GDK_ACTION_COPY | GDK_ACTION_MOVE); + + e_drag_dest_add_calendar_targets (GTK_WIDGET (selector)); } GType |