aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/calobj.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-16 06:51:48 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-16 06:51:48 +0800
commit77d15722d272941f67af74f5abb1eef1a21a4644 (patch)
tree38a3644f7873bbcdcff9e63666a583905477e1be /calendar/cal-util/calobj.c
parentf89cf24d2093c9982e461a2478d0acb4eeacc408 (diff)
downloadgsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar.gz
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar.bz2
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar.lz
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar.xz
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.tar.zst
gsoc2013-evolution-77d15722d272941f67af74f5abb1eef1a21a4644.zip
The general_owner may be null. Do the proper thing when creating the
1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_init_general_page): The general_owner may be null. Do the proper thing when creating the label. (ee_ok): Update the gnome calendar appropriately. * timeutil.h: * gncal-year-view.h: Add some missing prototypes. * gncal-full-day.c (child_popup_menu): Set the sensitivity of menu items according to whether the ical object is being edited or not. * eventedit.c (event_editor_new): Set the "being edited" flag on the ical object (stored as the ical object's user data). (event_editor_destroy): Release the flag. * calobj.h: The iCalObject structure now has a generic user_data pointer. * calobj.c (ical_object_set_user_data ical_object_get_user_data): Functions to set this data. svn path=/trunk/; revision=140
Diffstat (limited to 'calendar/cal-util/calobj.c')
-rw-r--r--calendar/cal-util/calobj.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index 7e5f535189..a744836c89 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -686,3 +686,15 @@ ical_foreach (GList *events, iCalObjectFn fn, void *closure)
(*fn) (ical, ical->dtstart, ical->dtend, closure);
}
}
+
+void
+ical_object_set_user_data (iCalObject *ical, void *user_data)
+{
+ ical->user_data = user_data;
+}
+
+void *
+ical_object_get_user_data (iCalObject *ical)
+{
+ return ical->user_data;
+}