aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-popup.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-06-07 05:05:18 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-06-07 05:05:18 +0800
commit9f5a04beb4ce18da2609e93adbb625a51c640e56 (patch)
tree8bf8e8184fcbfa11a5ae8f5eb7ca70c851b20ecf /calendar/gui/e-cal-popup.c
parentf05ae97ea17e835b4f9b198e4ebeb892f33aabd9 (diff)
downloadgsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar.gz
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar.bz2
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar.lz
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar.xz
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.tar.zst
gsoc2013-evolution-9f5a04beb4ce18da2609e93adbb625a51c640e56.zip
Added support for groupwise meeting delegation.
svn path=/trunk/; revision=29463
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r--calendar/gui/e-cal-popup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index 00dd097b17..5dc4462833 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -159,6 +159,9 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
if (e_cal_util_component_is_instance (comp_data->icalcomp))
mask &= ~E_CAL_POPUP_SELECT_INSTANCE;
+ if (e_cal_util_component_has_attendee (comp_data->icalcomp))
+ mask &= ~E_CAL_POPUP_SELECT_MEETING;
+
if (e_cal_util_component_has_organizer (comp_data->icalcomp)) {
ECalComponent *comp;
@@ -180,6 +183,9 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
if (!read_only)
mask &= ~E_CAL_POPUP_SELECT_EDITABLE;
+ if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_DELEGATE_SUPPORTED))
+ mask &= ~E_CAL_POPUP_SELECT_DELEGATABLE;
+
if (!e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)
&& !e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK))
mask &= ~E_CAL_POPUP_SELECT_ASSIGNABLE;
@@ -276,8 +282,10 @@ static const EPopupHookTargetMask ecalph_select_masks[] = {
{ "organizer", E_CAL_POPUP_SELECT_ORGANIZER },
{ "not-editing", E_CAL_POPUP_SELECT_NOTEDITING },
{ "not-meeting", E_CAL_POPUP_SELECT_NOTMEETING },
+ { "meeting", E_CAL_POPUP_SELECT_MEETING },
{ "assignable", E_CAL_POPUP_SELECT_ASSIGNABLE },
{ "hasurl", E_CAL_POPUP_SELECT_HASURL },
+ { "delegate", E_CAL_POPUP_SELECT_DELEGATABLE },
{ 0 }
};