diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-05-28 01:24:39 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-05-28 01:24:39 +0800 |
commit | 19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e (patch) | |
tree | fe8cb97e4f2b73b1bd4ff64e80fdae09847c477a /calendar/gui/e-cal-popup.c | |
parent | 36b1077817ae4a5377d33896543570be2885d678 (diff) | |
download | gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar.gz gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar.bz2 gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar.lz gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar.xz gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.tar.zst gsoc2013-evolution-19b5f0437a36c6b8b7b76f1ee32aad8b29473f7e.zip |
** Fix for bug #326388 from Raghavendaran
svn path=/trunk/; revision=33582
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r-- | calendar/gui/e-cal-popup.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c index a0c3ce2c3b..2afb14e9c8 100644 --- a/calendar/gui/e-cal-popup.c +++ b/calendar/gui/e-cal-popup.c @@ -668,6 +668,7 @@ e_cal_popup_target_new_source(ECalPopup *eabp, ESourceSelector *selector) const char *source_uri; ESource *source; const char *offline = NULL; + const char *delete = NULL; /* TODO: this is duplicated for addressbook too */ @@ -698,6 +699,19 @@ e_cal_popup_target_new_source(ECalPopup *eabp, ESourceSelector *selector) else { mask &= ~E_CAL_POPUP_SOURCE_OFFLINE; } + + source = e_source_selector_peek_primary_selection (selector); + /*check for delete_status property here*/ + delete = e_source_get_property (source, "delete"); + + if (delete && strcmp (delete,"no") == 0) { + /*set the menu item to non deletable */ + mask &= ~E_CAL_POPUP_SOURCE_NO_DELETE; + } + else { + mask &= ~E_CAL_POPUP_SOURCE_DELETE; + } + t->target.mask = mask; |