aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-27 20:32:09 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-27 20:32:09 +0800
commit2e94db8a65126ffcb456bd2823cf45e5b1510b0b (patch)
tree819b3bdd1877074b1a8f55075081c2c1c9c0aa71 /calendar/gui/e-day-view.c
parent561ab42a1cd7da4bacd6b4080815156c5f95b7a5 (diff)
downloadgsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar.gz
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar.bz2
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar.lz
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar.xz
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.tar.zst
gsoc2013-evolution-2e94db8a65126ffcb456bd2823cf45e5b1510b0b.zip
** Fix for bug #318003
2009-01-27 Milan Crha <mcrha@redhat.com> ** Fix for bug #318003 * gui/memos-component.c: (selector_tree_data_dropped): * gui/tasks-component.c: (selector_tree_data_dropped): * gui/calendar-component.c: (selector_tree_data_dropped), (create_component_view): * gui/comp-util.h: (cal_comp_process_source_list_drop): * gui/comp-util.c: (update_single_object), (update_objects), (cal_comp_process_source_list_drop): Support move of the event in day view when dropped over the source list. Use the same function for events/tasks/memos. * gui/e-day-view.c: (e_day_view_on_drag_data_get): Encode string data same as memos and tasks do, with a source UID. * gui/e-calendar-table.c: (e_calendar_table_copy_clipboard): * gui/e-memo-table.c: (e_memo_table_copy_clipboard): Removed inappropriate comments. svn path=/trunk/; revision=37140
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 523cf45afd..263b72d7ad 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -7366,8 +7366,18 @@ e_day_view_on_drag_data_get (GtkWidget *widget,
comp_str = icalcomponent_as_ical_string_r (vcal);
if (comp_str) {
+ ESource *source = e_cal_get_source (event->comp_data->client);
+ const char *source_uid = e_source_peek_uid (source);
+ char *tmp;
+
+ if (!source_uid)
+ source_uid = "";
+
+ tmp = g_strconcat (source_uid, "\n", comp_str, NULL);
gtk_selection_data_set (selection_data, selection_data->target,
- 8, (unsigned char *)comp_str, strlen (comp_str));
+ 8, (unsigned char *)tmp, strlen (tmp));
+
+ g_free (tmp);
}
icalcomponent_free (vcal);