diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-09-19 04:16:39 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-09-19 04:16:39 +0800 |
commit | 2b78b5294a6a047a971446595c9e7f5f32f583a2 (patch) | |
tree | 6b74cd7376bb1ab8024871a5e2b059d669ebf6d8 /calendar/gui/e-itip-control.c | |
parent | 3e079da9b69b8f5c47c79bcbb269ac17cc094c6e (diff) | |
download | gsoc2013-evolution-2b78b5294a6a047a971446595c9e7f5f32f583a2.tar.gz gsoc2013-evolution-2b78b5294a6a047a971446595c9e7f5f32f583a2.tar.zst gsoc2013-evolution-2b78b5294a6a047a971446595c9e7f5f32f583a2.zip |
new class for managing multiple calendars, with an API very similar to the
2001-09-18 Rodrigo Moya <rodrigo@ximian.com>
* cal-client/cal-client-multi.[ch]: new class for managing multiple
calendars, with an API very similar to the CalClient one,
for ease of transition from one to the other
* gui/component-factory.c (xfer_folder, remove_folder, create_folder):
reworked to be able to manage folders for any calendar backend, and
not only the file: one
2001-09-18 Rodrigo Moya <rodrigo@ximian.com>
* idl/evolution-calendar.idl: changed signature for the getFreeBusy
method, to return a sequence of CalObj's, and added sequence of users
as a new parameter to that method
* cal-client/cal-client.c (cal_client_get_free_busy): adapted to new
IDL method signature, by adding a new "GList *users" parameter, for
callers to be able to specify a list of users
* pcs/cal-backend.[ch] (cal_backend_get_free_busy):
* pcs/cal-backend-file.c (cal_backend_file_get_free_busy): add the
"GList *users" parameter. In cal_backend_file_get_free_busy, call
lookup_component to get the CalComponent for each uid, instead
of calling cal_backend_get_object, which meant converting the
component to a string and then parsing it again.
* cal-client/client-test.c (cal_opened_cb):
* gui/e-itip-control.c (send_freebusy):
* gui/calendar-commands.c (publish_freebusy_cmd): adapted to
new getFreeBusy method signature
svn path=/trunk/; revision=12951
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index c6638bfa29..bc528ac8c0 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -1193,9 +1193,9 @@ send_freebusy (EItipControl *itip) EItipControlPrivate *priv; CalComponent *comp; CalComponentDateTime datetime; - CalClientGetStatus status; time_t start, end; GtkWidget *dialog; + GList *comp_list; priv = itip->priv; @@ -1204,11 +1204,20 @@ send_freebusy (EItipControl *itip) start = icaltime_as_timet (*datetime.value); cal_component_get_dtend (priv->comp, &datetime); end = icaltime_as_timet (*datetime.value); - status = cal_client_get_free_busy (priv->event_client, start, end, &comp); + comp_list = cal_client_get_free_busy (priv->event_client, NULL, start, end); - if (status == CAL_CLIENT_GET_SUCCESS) { - itip_send_comp (CAL_COMPONENT_METHOD_REPLY, comp); + if (comp_list) { + GList *l; + + for (l = comp_list; l; l = l->next) { + CalComponent *comp = CAL_COMPONENT (l->data); + itip_send_comp (CAL_COMPONENT_METHOD_REPLY, comp); + + gtk_object_unref (GTK_OBJECT (comp)); + } dialog = gnome_ok_dialog (_("Item sent!\n")); + + g_list_free (comp_list); } else { dialog = gnome_warning_dialog (_("The item could not be sent!\n")); } |