diff options
author | Milan Crha <mcrha@redhat.com> | 2009-01-24 00:12:05 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-01-24 00:12:05 +0800 |
commit | ff8d41ae52326b3dd81a74a047ad4cc1c80c9900 (patch) | |
tree | 018fe161d313a043a410b5b2b000572cab696255 /calendar/gui | |
parent | a8abd0060bdec73f774c665dd0488623dd4932ba (diff) | |
download | gsoc2013-evolution-ff8d41ae52326b3dd81a74a047ad4cc1c80c9900.tar.gz gsoc2013-evolution-ff8d41ae52326b3dd81a74a047ad4cc1c80c9900.tar.zst gsoc2013-evolution-ff8d41ae52326b3dd81a74a047ad4cc1c80c9900.zip |
** Fix for bug #559604
2009-01-23 Milan Crha <mcrha@redhat.com>
** Fix for bug #559604
* gui/itip-utils.h: (itip_organizer_is_user_ex):
* gui/itip-utils.c: (itip_organizer_is_user_ex),
(itip_organizer_is_user):
* gui/e-calendar-view.c: (e_calendar_view_get_attendees_status_info):
Let the feature work with Groupwise too.
svn path=/trunk/; revision=37124
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 2 | ||||
-rw-r--r-- | calendar/gui/itip-utils.c | 10 | ||||
-rw-r--r-- | calendar/gui/itip-utils.h | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 98edbb7d3e..1215d5d7a2 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -2265,7 +2265,7 @@ e_calendar_view_get_attendees_status_info (ECalComponent *comp, ECal *client) char *res = NULL; int i; - if (!comp || !e_cal_component_has_attendees (comp) || !itip_organizer_is_user (comp, client)) + if (!comp || !e_cal_component_has_attendees (comp) || !itip_organizer_is_user_ex (comp, client, TRUE)) return NULL; e_cal_component_get_attendee_list (comp, &attendees); diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 5bd4452154..574c7800f1 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -83,13 +83,13 @@ itip_addresses_get_default (void) } gboolean -itip_organizer_is_user (ECalComponent *comp, ECal *client) +itip_organizer_is_user_ex (ECalComponent *comp, ECal *client, gboolean skip_cap_test) { ECalComponentOrganizer organizer; const char *strip; gboolean user_org = FALSE; - if (!e_cal_component_has_organizer (comp) || e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_ORGANIZER)) + if (!e_cal_component_has_organizer (comp) || (!skip_cap_test && e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_ORGANIZER))) return FALSE; e_cal_component_get_organizer (comp, &organizer); @@ -117,6 +117,12 @@ itip_organizer_is_user (ECalComponent *comp, ECal *client) } gboolean +itip_organizer_is_user (ECalComponent *comp, ECal *client) +{ + return itip_organizer_is_user_ex (comp, client, FALSE); +} + +gboolean itip_sentby_is_user (ECalComponent *comp) { ECalComponentOrganizer organizer; diff --git a/calendar/gui/itip-utils.h b/calendar/gui/itip-utils.h index 3c84af929f..631c0a3430 100644 --- a/calendar/gui/itip-utils.h +++ b/calendar/gui/itip-utils.h @@ -51,6 +51,7 @@ EAccountList *itip_addresses_get (void); EAccount *itip_addresses_get_default (void); gboolean itip_organizer_is_user (ECalComponent *comp, ECal *client); +gboolean itip_organizer_is_user_ex (ECalComponent *comp, ECal *client, gboolean skip_cap_test); gboolean itip_sentby_is_user (ECalComponent *comp); const gchar *itip_strip_mailto (const gchar *address); |