diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-05 15:17:43 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-05 15:17:43 +0800 |
commit | 02871e3c454b8adbc672404e77b459114344ea15 (patch) | |
tree | 7598fc5d24a74d5301c1eafb62054bf90fc98dbe /calendar/gui/e-cal-popup.c | |
parent | 26ffb596c39b80acb420d1448a0c28f976a2270b (diff) | |
download | gsoc2013-evolution-02871e3c454b8adbc672404e77b459114344ea15.tar.gz gsoc2013-evolution-02871e3c454b8adbc672404e77b459114344ea15.tar.zst gsoc2013-evolution-02871e3c454b8adbc672404e77b459114344ea15.zip |
fixes #258786
svn path=/trunk/; revision=31060
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r-- | calendar/gui/e-cal-popup.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c index eb542459a7..2f80f7d34a 100644 --- a/calendar/gui/e-cal-popup.c +++ b/calendar/gui/e-cal-popup.c @@ -569,8 +569,18 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr mask &= ~E_CAL_POPUP_SELECT_ANY; if (t->events->len == 1) mask &= ~E_CAL_POPUP_SELECT_ONE; - else + else { mask &= ~E_CAL_POPUP_SELECT_MANY; + /* Now check for any incomplete tasks and set the flags*/ + int i=0; + for (; i < t->events->len; i++) { + ECalModelComponent *comp_data = (ECalModelComponent *)t->events->pdata[i]; + if (!icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY)) { + mask &= ~E_CAL_POPUP_SELECT_NOTCOMPLETE; + break; + } + } + } if (icalcomponent_get_first_property (comp_data->icalcomp, ICAL_URL_PROPERTY)) mask &= ~E_CAL_POPUP_SELECT_HASURL; |