aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/copy-source-dialog.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-11-27 10:52:09 +0800
committerHans Petter <hansp@src.gnome.org>2003-11-27 10:52:09 +0800
commit1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609 (patch)
tree370c7ab1ca9de9cf55ea91bf5b074b3ce080787d /calendar/gui/dialogs/copy-source-dialog.c
parent7abb26b3fb954e44f5bfcda777ac0aa24dbf6fee (diff)
downloadgsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar.gz
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar.bz2
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar.lz
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar.xz
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.tar.zst
gsoc2013-evolution-1f63ae9e3a24111bbe7c9ebe179eb7c9fad87609.zip
e_cal_new () -> e_cal_new_from_uri (). (backend_go_online): Ditto.
2003-11-26 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-offline-handler.c (backend_go_offline): e_cal_new () -> e_cal_new_from_uri (). (backend_go_online): Ditto. (calendar_offline_handler_init): Ditto. * gui/comp-editor-factory.c (open_client): Ditto. * gui/e-itip-control.c (start_calendar_server): Ditto. (object_requested_cb): Ditto. * gui/e-tasks.c (e_tasks_add_todo_uri): Ditto. * gui/gnome-cal.c (gnome_calendar_construct): Ditto. (gnome_calendar_add_event_uri): Ditto. * gui/alarm-notify/alarm-notify.c (alarm_notify_add_calendar): Ditto. * importers/icalendar-importer.c (load_file_fn): Ditto. (vcal_load_file_fn): Ditto. (gnome_calendar_import_data_fn): Ditto. * gui/dialogs/copy-source-dialog.c (copy_source): Pass sources to e_cal_new (). svn path=/trunk/; revision=23498
Diffstat (limited to 'calendar/gui/dialogs/copy-source-dialog.c')
-rw-r--r--calendar/gui/dialogs/copy-source-dialog.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c
index feec6b8497..a1d51e7f74 100644
--- a/calendar/gui/dialogs/copy-source-dialog.c
+++ b/calendar/gui/dialogs/copy-source-dialog.c
@@ -63,9 +63,7 @@ copy_source (CopySourceDialogData *csdd)
return FALSE;
/* open the source */
- uri = e_source_get_uri (csdd->orig_source);
- source_client = e_cal_new (uri, csdd->obj_type);
- g_free (uri);
+ source_client = e_cal_new (csdd->orig_source, csdd->obj_type);
if (!e_cal_open (source_client, TRUE, NULL)) {
g_object_unref (source_client);
g_warning (G_STRLOC ": Could not open source");
@@ -73,9 +71,7 @@ copy_source (CopySourceDialogData *csdd)
}
/* open the destination */
- uri = e_source_get_uri (dest_source);
- dest_client = e_cal_new (uri, csdd->obj_type);
- g_free (uri);
+ dest_client = e_cal_new (dest_source, csdd->obj_type);
if (!e_cal_open (dest_client, FALSE, NULL)) {
g_object_unref (dest_client);
g_object_unref (source_client);