fixed leak and pass the correct icalcomponent to e_cal_modify_object.

2004-06-02  Rodrigo Moya <rodrigo@novell.com>

	* gui/dialogs/copy-source-dialog.c (copy_source): fixed
	leak and pass the correct icalcomponent to e_cal_modify_object.

svn path=/trunk/; revision=26154
This commit is contained in:
Rodrigo Moya
2004-06-02 16:31:23 +00:00
committed by Rodrigo Moya
parent 81a9c1e88d
commit 5919bc5b8b
4 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2004-06-02 Rodrigo Moya <rodrigo@novell.com>
* gui/dialogs/copy-source-dialog.c (copy_source): fixed
leak and pass the correct icalcomponent to e_cal_modify_object.
2004-06-02 Rodrigo Moya <rodrigo@novell.com>
Fixes #59333

View File

@ -83,7 +83,8 @@ copy_source (CopySourceDialogData *csdd)
/* FIXME: process errors */
if (e_cal_get_object (dest_client, icalcomponent_get_uid (l->data), NULL,
&icalcomp, NULL)) {
e_cal_modify_object (dest_client, icalcomp, CALOBJ_MOD_ALL, NULL);
e_cal_modify_object (dest_client, l->data, CALOBJ_MOD_ALL, NULL);
icalcomponent_free (icalcomp);
} else {
e_cal_create_object (dest_client, l->data, (char **) &uid, NULL);
g_free ((gpointer) uid);

View File

@ -132,7 +132,7 @@ set_menu_sens (EventEditor *ee)
e_cal_is_read_only (comp_editor_get_e_cal (COMP_EDITOR (ee)), &read_only, NULL);
sens = priv->meeting_shown;
comp_editor_set_ui_prop (COMP_EDITOR (ee),
comp_editor_set_ui_prop (COMP_EDITOR (ee),
"/commands/ActionScheduleMeeting",
"sensitive", sens || read_only ? "0" : "1");
@ -144,7 +144,7 @@ set_menu_sens (EventEditor *ee)
sens = priv->meeting_shown && existing && user && !read_only;
comp_editor_set_ui_prop (COMP_EDITOR (ee),
"/commands/ActionCancelMeeting",
"sensitive", sens? "1" : "0");
"sensitive", sens ? "1" : "0");
comp_editor_set_ui_prop (COMP_EDITOR (ee),
"/commands/FileSave",

View File

@ -183,7 +183,7 @@ find_server (EItipControl *itip, ECalComponent *comp)
GSList *sources, *m;
group = l->data;
sources = e_source_group_peek_sources (group);
for (m = sources; m; m = m->next) {
ESource *source;
@ -384,8 +384,7 @@ find_my_address (EItipControl *itip, icalcomponent *ical_comp)
for (prop = icalcomponent_get_first_property (ical_comp, ICAL_ATTENDEE_PROPERTY);
prop != NULL;
prop = icalcomponent_get_next_property (ical_comp, ICAL_ATTENDEE_PROPERTY))
{
prop = icalcomponent_get_next_property (ical_comp, ICAL_ATTENDEE_PROPERTY)) {
icalvalue *value;
icalparameter *param;
const char *attendee, *name;