From 94f84171da1005a087656500be0666ef7a398621 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 14 May 2002 18:47:29 +0000 Subject: make the range datetime member a struct not a pointer 2002-05-14 JP Rosevear * cal-util/cal-component.h: make the range datetime member a struct not a pointer * cal-util/cal-component.c (cal_component_get_recurid): take a pointer to a range (cal_component_set_recurid): ditto * gui/itip-utils.c (comp_minimal): get/set the recurrence id properly svn path=/trunk/; revision=16785 --- calendar/gui/dialogs/cal-prefs-dialog.c | 3 ++- calendar/gui/itip-utils.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 2e61fc0bd5..639738c3bc 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -318,7 +318,8 @@ config_control_destroy_callback (GtkObject *object, dialog_data = (DialogData *) data; - /* (Nothing to free in the struct.) */ + gtk_object_unref (GTK_OBJECT (dialog_data->xml)); + g_free (dialog_data); } diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index ee0d78b0b6..7e9efdbb57 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -601,7 +601,7 @@ comp_minimal (CalComponent *comp, gboolean attendee) const char *uid; GSList *comments; struct icaltimetype itt; - CalComponentRange *recur_id; + CalComponentRange recur_id; clone = cal_component_new (); cal_component_set_new_vtype (clone, cal_component_get_vtype (comp)); @@ -644,8 +644,8 @@ comp_minimal (CalComponent *comp, gboolean attendee) cal_component_free_text_list (comments); cal_component_get_recurid (comp, &recur_id); - if (recur_id->datetime->value != NULL) - cal_component_set_recurid (clone, recur_id); + if (recur_id.datetime.value != NULL) + cal_component_set_recurid (clone, &recur_id); icomp = cal_component_get_icalcomponent (comp); icomp_clone = cal_component_get_icalcomponent (clone); -- cgit