diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-07-14 13:23:19 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-07-14 13:23:19 +0800 |
commit | 599e55ccba0dd6fc1f5e2d28880453ce92e30368 (patch) | |
tree | 1b84dcdfa425196c0eca475b070faddbc39ae9c1 /calendar/gui/e-cal-popup.c | |
parent | 91979d1eff9a4a0d7fb9d48c7239dd6b26500a25 (diff) | |
download | gsoc2013-evolution-599e55ccba0dd6fc1f5e2d28880453ce92e30368.tar.gz gsoc2013-evolution-599e55ccba0dd6fc1f5e2d28880453ce92e30368.tar.zst gsoc2013-evolution-599e55ccba0dd6fc1f5e2d28880453ce92e30368.zip |
Fix for bug #329772
svn path=/trunk/; revision=32306
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r-- | calendar/gui/e-cal-popup.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c index 32967f04b5..6020cd4b07 100644 --- a/calendar/gui/e-cal-popup.c +++ b/calendar/gui/e-cal-popup.c @@ -581,10 +581,10 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr 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)) { + if (!icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY)) mask &= ~E_CAL_POPUP_SELECT_NOTCOMPLETE; - break; - } + else + mask &= ~E_CAL_POPUP_SELECT_COMPLETE; } } @@ -636,6 +636,9 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr if (!icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY)) mask &= ~E_CAL_POPUP_SELECT_NOTCOMPLETE; + if (icalcomponent_get_first_property (comp_data->icalcomp, ICAL_COMPLETED_PROPERTY)) + mask &= ~E_CAL_POPUP_SELECT_COMPLETE; + g_object_unref (comp); g_free (user_email); } @@ -799,6 +802,7 @@ static const EPopupHookTargetMask ecalph_select_masks[] = { { "accept", E_CAL_POPUP_SELECT_ACCEPTABLE }, { "not-complete", E_CAL_POPUP_SELECT_NOTCOMPLETE }, { "no-save-schedules", E_CAL_POPUP_SELECT_NOSAVESCHEDULES }, + { "complete" , E_CAL_POPUP_SELECT_COMPLETE}, { 0 } }; |