aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-05-15 02:47:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-05-15 02:47:29 +0800
commit94f84171da1005a087656500be0666ef7a398621 (patch)
treef25e2e78f22519c3fa38d2f54591804e88c31bdc /calendar/gui
parent0f3c7879a1773d68415befef933c63eb9872079f (diff)
downloadgsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.gz
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.bz2
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.lz
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.xz
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.zst
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.zip
make the range datetime member a struct not a pointer
2002-05-14 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c3
-rw-r--r--calendar/gui/itip-utils.c6
2 files changed, 5 insertions, 4 deletions
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);