From f2b2d42471dc6a820c94f8888bd4f13a5c00a530 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 24 Aug 2009 21:29:25 -0400 Subject: Handle calendar URIs from the command line. --- calendar/gui/gnome-cal.c | 38 -------------------------------------- calendar/gui/gnome-cal.h | 6 ------ 2 files changed, 44 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 7f2328f735..2fa1a38a52 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2624,41 +2624,3 @@ gnome_calendar_purge (GnomeCalendar *gcal, time_t older_than) g_free (end); } - -void -gnome_calendar_edit_appointment (GnomeCalendar *gcal, - const gchar * src_uid, - const gchar * comp_uid, - const gchar * comp_rid) -{ - ECal *client = NULL; - GList *l; - icalcomponent* icalcomp = NULL; - icalproperty *attendee_prop = NULL; - - if (!src_uid || !comp_uid) - return; - - for (l = gcal->priv->clients_list; l != NULL; l = l->next) { - ESource *client_src; - - client = l->data; - client_src = e_cal_get_source (client); - - if (!strcmp (src_uid, e_source_peek_uid (client_src))) - break; - } - - if (!client) - return; - - e_cal_get_object (client, comp_uid, comp_rid, &icalcomp, NULL); - - if (!icalcomp) - return; - - attendee_prop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY); - e_calendar_view_edit_appointment (gcal->priv->views[gcal->priv->current_view_type], - client, icalcomp, attendee_prop ? TRUE:FALSE); - icalcomponent_free (icalcomp); -} diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h index 2b7eac85f1..0cc528fe3c 100644 --- a/calendar/gui/gnome-cal.h +++ b/calendar/gui/gnome-cal.h @@ -184,12 +184,6 @@ gint gnome_calendar_get_num_events_selected void gnome_calendar_purge (GnomeCalendar *gcal, time_t older_than); -/* Direct calendar component operations */ -void gnome_calendar_edit_appointment (GnomeCalendar *gcal, - const gchar * src_uid, - const gchar * comp_uid, - const gchar * comp_rid); - G_END_DECLS #endif -- cgit