From de6a038de483b86729070f81dbadaf364dcf28b9 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 12 Dec 2000 20:34:58 +0000 Subject: Constify for new libical API. (set_text_list): Likewise. 2000-12-12 Federico Mena Quintero * 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 --- calendar/gui/dialogs/task-editor.c | 9 --------- calendar/gui/e-itip-control.c | 7 ++++--- calendar/gui/gnome-cal.c | 23 ----------------------- 3 files changed, 4 insertions(+), 35 deletions(-) (limited to 'calendar/gui') 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 { -- cgit v1.2.3