diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-12-13 04:34:58 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-13 04:34:58 +0800 |
commit | de6a038de483b86729070f81dbadaf364dcf28b9 (patch) | |
tree | 7f8b8f6a21b7510589c00fedfc903a21bc3b8c06 /calendar/gui | |
parent | 3641d7d4bdb22b7e6a1f6d4edd84390c559222dd (diff) | |
download | gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar.gz gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar.bz2 gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar.lz gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar.xz gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.tar.zst gsoc2013-evolution-de6a038de483b86729070f81dbadaf364dcf28b9.zip |
Constify for new libical API. (set_text_list): Likewise.
2000-12-12 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (get_text_list): Constify for new
libical API.
(set_text_list): Likewise.
* cal-util/cal-recur.c (cal_recur_get_rule_end_date): Likewise.
(cal_recur_set_rule_end_date): Likewise.
* gui/e-itip-control.c (find_attendee): Likewise.
(pstream_load): Likewise.
* gui/gnome-cal.c (released_event_object_cb): Removed unused function.
* gui/dialogs/task-editor.c (status_string_map): Removed unused
variable.
svn path=/trunk/; revision=6943
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/task-editor.c | 9 | ||||
-rw-r--r-- | calendar/gui/e-itip-control.c | 7 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 23 |
3 files changed, 4 insertions, 35 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index 6114ffa529..60a9bdd60a 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -98,15 +98,6 @@ static const int status_map[] = { -1 }; -static const char* status_string_map[] = { - "NEEDS-ACTION", - "IN-PROCESS", - "COMPLETED", - "CANCELLED", - NULL -}; - - typedef enum { PRIORITY_HIGH, PRIORITY_NORMAL, diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index ced1431292..8e1ee0df22 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -63,7 +63,7 @@ static icalproperty * find_attendee (icalcomponent *comp, char *address) { icalproperty *prop; - char *attendee, *text; + const char *attendee, *text; icalvalue *value; for (prop = icalcomponent_get_first_property (comp, ICAL_ATTENDEE_PROPERTY); @@ -685,8 +685,9 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, all the things I'll show in my control. */ { icalproperty *prop; - gchar *new_text; - gchar *organizer, *description, *summary; + const char *description, *summary; + const char *new_text; + const char *organizer; struct icaltimetype dtstart, dtend; time_t tstart, tend; diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 3b16c46f70..bbc0e0e1b9 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1702,29 +1702,6 @@ gnome_calendar_get_selected_time_range (GnomeCalendar *gcal, } -/* Callback used when an event editor finishes editing an object */ -static void -released_event_object_cb (EventEditor *ee, const char *uid, gpointer data) -{ - GnomeCalendar *gcal; - GnomeCalendarPrivate *priv; - gboolean result; - gpointer orig_key; - char *orig_uid; - - gcal = GNOME_CALENDAR (data); - priv = gcal->priv; - - result = g_hash_table_lookup_extended (priv->object_editor_hash, uid, &orig_key, NULL); - g_assert (result != FALSE); - - orig_uid = orig_key; - - g_hash_table_remove (priv->object_editor_hash, orig_uid); - g_free (orig_uid); -} - - /* Callback used when an event editor dialog is closed */ struct editor_closure { |