aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-menu.c
diff options
context:
space:
mode:
authorShakti Sen <shprasad@novell.com>2005-08-02 21:50:54 +0800
committerShakti Prasad Sen <shaktis@src.gnome.org>2005-08-02 21:50:54 +0800
commit5739bae429a2743066ad644dc9d32f1d8021e6da (patch)
tree284643bdd1a55ef4013709f746240fdf1239200f /calendar/gui/e-cal-menu.c
parent90d630ecd19935e696b9279ef9d7d4c6a5486739 (diff)
downloadgsoc2013-evolution-5739bae429a2743066ad644dc9d32f1d8021e6da.tar.gz
gsoc2013-evolution-5739bae429a2743066ad644dc9d32f1d8021e6da.tar.zst
gsoc2013-evolution-5739bae429a2743066ad644dc9d32f1d8021e6da.zip
Added support for the Target selection for 'Tasks'. Resolved one undefined
2005-08-01 Shakti Sen <shprasad@novell.com> * gui/tasks-control.c (tasks_control_sensitize_commands): Added support for the Target selection for 'Tasks'. * gui/e-calendar-table.c (e_calendar_table_open_selected): Resolved one undefined symbol. * gui/e-tasks.c: Renamed the function name from 'e_tasks_get_tasks_menu' to 'e_tasks_get_tasks_menu' * gui/e-tasks.h: Added the declaration for 'e_tasks_get_tasks_menu'. Thus fixes few warning messages. * gui/e-cal-menu.c (e_cal_menu_target_new_select): Set the mask for E_CAL_MENU_SELECT_ASSIGNABLE. Fixes bug #231968. svn path=/trunk/; revision=29957
Diffstat (limited to 'calendar/gui/e-cal-menu.c')
-rw-r--r--calendar/gui/e-cal-menu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/calendar/gui/e-cal-menu.c b/calendar/gui/e-cal-menu.c
index 499b90d11e..7a177d6017 100644
--- a/calendar/gui/e-cal-menu.c
+++ b/calendar/gui/e-cal-menu.c
@@ -144,6 +144,11 @@ e_cal_menu_target_new_select(ECalMenu *eabp, struct _ECalModel *model, GPtrArray
if (icalcomponent_get_first_property (comp_data->icalcomp, ICAL_URL_PROPERTY))
mask &= ~E_CAL_MENU_SELECT_HASURL;
+ if (!e_cal_get_static_capability (comp_data->client, CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)
+ && !e_cal_get_static_capability (comp_data->client, CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK)
+ && !icalcomponent_get_first_property (comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY))
+ mask &= ~E_CAL_MENU_SELECT_ASSIGNABLE;
+
if (e_cal_util_component_has_recurrences (comp_data->icalcomp))
mask &= ~E_CAL_MENU_SELECT_RECURRING;
else if (e_cal_util_component_is_instance (comp_data->icalcomp))
@@ -175,10 +180,6 @@ e_cal_menu_target_new_select(ECalMenu *eabp, struct _ECalModel *model, GPtrArray
e_cal_is_read_only(client, &read_only, NULL);
if (!read_only)
mask &= ~E_CAL_MENU_SELECT_EDITABLE;
-
- 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_MENU_SELECT_ASSIGNABLE;
}
/* This bit isn't implemented ... */