use the correct icalcomponent when calling e_cal_create_object.

2003-11-24  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/copy-source-dialog.c (copy_source): use the correct
	icalcomponent when calling e_cal_create_object.

svn path=/trunk/; revision=23482
This commit is contained in:
Rodrigo Moya 2003-11-24 11:41:52 +00:00 committed by Rodrigo Moya
parent 25c1366e4a
commit a25373060b
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2003-11-24 Rodrigo Moya <rodrigo@ximian.com>
* gui/dialogs/copy-source-dialog.c (copy_source): use the correct
icalcomponent when calling e_cal_create_object.
* gui/tasks-control.c (sensitize_commands): no need to have a
selection for Paste to work.

View File

@ -95,7 +95,7 @@ copy_source (CopySourceDialogData *csdd)
&icalcomp, NULL)) {
e_cal_modify_object (dest_client, icalcomp, CALOBJ_MOD_ALL, NULL);
} else {
e_cal_create_object (dest_client, icalcomp, (char **) &uid, NULL);
e_cal_create_object (dest_client, l->data, (char **) &uid, NULL);
g_free ((gpointer) uid);
}
}

View File

@ -856,7 +856,6 @@ e_tasks_add_todo_uri (ETasks *tasks, const char *str_uri)
g_signal_connect (G_OBJECT (client), "backend_error", G_CALLBACK (backend_error_cb), tasks);
g_signal_connect (G_OBJECT (client), "categories_changed", G_CALLBACK (client_categories_changed_cb), tasks);
// g_signal_connect (G_OBJECT (client), "backend_died", G_CALLBACK (backend_died_cb), tasks);
if (!e_cal_open (client, FALSE, NULL)) {
g_hash_table_remove (priv->clients, str_uri);