diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-25 09:29:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-25 09:29:25 +0800 |
commit | f2b2d42471dc6a820c94f8888bd4f13a5c00a530 (patch) | |
tree | 4e4d806e1c4e6926b7386ac633073550414184a6 /calendar/gui | |
parent | 943dc3bab42bf9a550de3e5d8eece522cfd6ac6c (diff) | |
download | gsoc2013-evolution-f2b2d42471dc6a820c94f8888bd4f13a5c00a530.tar.gz gsoc2013-evolution-f2b2d42471dc6a820c94f8888bd4f13a5c00a530.tar.zst gsoc2013-evolution-f2b2d42471dc6a820c94f8888bd4f13a5c00a530.zip |
Handle calendar URIs from the command line.
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/gnome-cal.c | 38 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.h | 6 |
2 files changed, 0 insertions, 44 deletions
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 |