diff options
author | JP Rosevear <jpr@ximian.com> | 2001-07-03 03:21:49 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-07-03 03:21:49 +0800 |
commit | b4e780fd75795ff4218a369075a3feb9bc2fb3ce (patch) | |
tree | c901d6cc187458ea015185219ab962e070cbcbb5 /calendar/gui/e-itip-control.c | |
parent | e28ff48d57c7535b099fe9d4d7544c6b4ec360ec (diff) | |
download | gsoc2013-evolution-b4e780fd75795ff4218a369075a3feb9bc2fb3ce.tar.gz gsoc2013-evolution-b4e780fd75795ff4218a369075a3feb9bc2fb3ce.tar.zst gsoc2013-evolution-b4e780fd75795ff4218a369075a3feb9bc2fb3ce.zip |
implement
2001-07-02 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (send_freebusy): implement
* cal-util/cal-component.c (set_attendee_list): add the delto
property rather than the delfrom property twice
* gui/dialogs/task-editor.c (task_editor_edit_comp): show
delegation info if appropriate
(delegate_task_cmd): delegate command
(cancel_task_cmd): cancel command
(refresh_task_cmd): refresh command
* gui/dialogs/task-details-page.c: Load new widgets
(task_details_page_show_delegation): show/hide delegation info widgets
* gui/dialogs/task-details-page.h: new proto
* gui/dialogs/event-editor.c (event_editor_edit_comp): free
attendee list when finished
* gui/dialogs/comp-editor.c (setup_widgets): explicitly show the
widgets, update pixmaps after the verbs have been added
(comp_editor_focus): don't do a show all
svn path=/trunk/; revision=10697
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 8363f11d2e..24717b0aa7 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -895,8 +895,23 @@ remove_item (EItipControl *itip) } static void -send_freebusy (void) +send_freebusy (EItipControl *itip) { + EItipControlPrivate *priv; + CalComponent *comp; + CalComponentDateTime datetime; + CalClientGetStatus status; + time_t start, end; + + priv = itip->priv; + + cal_component_get_dtstart (priv->comp, &datetime); + 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); + if (status == CAL_CLIENT_GET_SUCCESS) + itip_send_comp (CAL_COMPONENT_METHOD_REPLY, comp); } static void @@ -983,7 +998,7 @@ ok_clicked_cb (GtkWidget *widget, gpointer data) itip_send_comp (CAL_COMPONENT_METHOD_REPLY, priv->comp); } else if (priv->map == request_fb_map) { - send_freebusy (); + send_freebusy (itip); } else if (priv->map == reply_map) { update_item (itip); |