aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-popup.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-16 13:47:06 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-16 13:47:06 +0800
commit16bcca2ec81199ff2460f35f9473349e7634ee40 (patch)
treed79dbcf933bdc9d5012838367310de2377004e51 /calendar/gui/e-cal-popup.c
parent8c2bc05620e28699a6d4768791411a293a797015 (diff)
downloadgsoc2013-evolution-16bcca2ec81199ff2460f35f9473349e7634ee40.tar.gz
gsoc2013-evolution-16bcca2ec81199ff2460f35f9473349e7634ee40.tar.zst
gsoc2013-evolution-16bcca2ec81199ff2460f35f9473349e7634ee40.zip
added code in gui/itip-utils.[ch], gui/e-cal-popup.[ch], gui/e-calendar-view.c
so that an option of "Reply" and "Reply All" on right click of a calendar item for calendars that do not have the static capability of saving schedules. svn path=/trunk/; revision=31192
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r--calendar/gui/e-cal-popup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index fd91bed407..89cae6de73 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -549,7 +549,7 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
guint32 mask = ~0;
ECal *client;
gboolean read_only, user_org = FALSE;
-
+
/* FIXME: This is duplicated in e-cal-menu */
t->model = model;
@@ -599,6 +599,9 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
if (e_cal_util_component_has_attendee (comp_data->icalcomp))
mask &= ~E_CAL_POPUP_SELECT_MEETING;
+ if (!e_cal_get_save_schedules (comp_data->client))
+ mask &= ~E_CAL_POPUP_SELECT_NOSAVESCHEDULES;
+
if (e_cal_util_component_has_organizer (comp_data->icalcomp)) {
if (itip_organizer_is_user (comp, comp_data->client)) {
@@ -790,6 +793,7 @@ static const EPopupHookTargetMask ecalph_select_masks[] = {
{ "delegate", E_CAL_POPUP_SELECT_DELEGATABLE },
{ "accept", E_CAL_POPUP_SELECT_ACCEPTABLE },
{ "not-complete", E_CAL_POPUP_SELECT_NOTCOMPLETE },
+ { "no-save-schedules", E_CAL_POPUP_SELECT_NOSAVESCHEDULES },
{ 0 }
};