diff options
author | JP Rosevear <jpr@novell.com> | 2005-01-10 10:59:27 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-01-10 10:59:27 +0800 |
commit | 884bc8d16329b4b2c197bba627aca7e8e1e32a06 (patch) | |
tree | 1705d16d5f1b83b503f32748e96151369d5a8452 /plugins/itip-formatter/itip-view.c | |
parent | 8d9a32051f4073c11a6d9d2e679563cc21379a02 (diff) | |
download | gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar.gz gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar.bz2 gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar.lz gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar.xz gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.tar.zst gsoc2013-evolution-884bc8d16329b4b2c197bba627aca7e8e1e32a06.zip |
accessor (itip_view_get_delegator): ditto
2005-01-09 JP Rosevear <jpr@novell.com>
* itip-view.c (itip_view_set_delegator): accessor
(itip_view_get_delegator): ditto
* itip-view.h: new protos
* itip-formatter.c (extract_itip_data): put delegate sections back
in and handle default reminder
(format_itip_object): set the delegator for requests, find the
delegator calendar if necessary
svn path=/trunk/; revision=28305
Diffstat (limited to 'plugins/itip-formatter/itip-view.c')
-rw-r--r-- | plugins/itip-formatter/itip-view.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c index 0ab931b0b4..1a0397bb6a 100644 --- a/plugins/itip-formatter/itip-view.c +++ b/plugins/itip-formatter/itip-view.c @@ -1073,6 +1073,37 @@ itip_view_get_attendee (ItipView *view) } void +itip_view_set_delegator (ItipView *view, const char *delegator) +{ + ItipViewPrivate *priv; + + g_return_if_fail (view != NULL); + g_return_if_fail (ITIP_IS_VIEW (view)); + + priv = view->priv; + + if (priv->delegator) + g_free (priv->delegator); + + priv->delegator = g_strdup (delegator); + + set_sender_text (view); +} + +const char * +itip_view_get_delegator (ItipView *view) +{ + ItipViewPrivate *priv; + + g_return_val_if_fail (view != NULL, NULL); + g_return_val_if_fail (ITIP_IS_VIEW (view), NULL); + + priv = view->priv; + + return priv->delegator; +} + +void itip_view_set_summary (ItipView *view, const char *summary) { ItipViewPrivate *priv; |