From 4a8b6d717107d83401695ffdec711a5452095c27 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 9 Apr 2004 15:56:21 +0000 Subject: Create an EUserCreatableItemsHandler for the view if there isn't one yet, * gui/gnome-cal.c (gnome_calendar_set_ui_component): Create an EUserCreatableItemsHandler for the view if there isn't one yet, and then activate it. (gnome_calendar_destroy): destroy it. * gui/calendar-component.c (impl__get_userCreatableItems): add object/folder flags to items. * gui/e-tasks.c (e_tasks_set_ui_component): Create an EUserCreatableItemsHandler for the view if there isn't one yet, and then activate it. (e_tasks_destroy): destroy it. * gui/tasks-component.c (impl__get_userCreatableItems): add object/folder flags. Change "Task List" to "Tasks Group" per new specs. * gui/calendar-commands.c (calendar_control_deactivate): clear the GnomeCal's ui_component rather than setting it again svn path=/trunk/; revision=25382 --- calendar/gui/tasks-component.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calendar/gui/tasks-component.c') diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 5b1683a0e4..12383124f4 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -562,13 +562,15 @@ impl__get_userCreatableItems (PortableServer_Servant servant, list->_buffer[0].tooltip = _("Create a new task"); list->_buffer[0].menuShortcut = 't'; list->_buffer[0].iconName = "new_task-16.png"; + list->_buffer[0].type = GNOME_Evolution_CREATABLE_OBJECT; list->_buffer[1].id = CREATE_TASK_LIST_ID; - list->_buffer[1].description = _("New task list"); - list->_buffer[1].menuDescription = _("_Task List"); - list->_buffer[1].tooltip = _("Create a new task list"); + list->_buffer[1].description = _("New tasks group"); + list->_buffer[1].menuDescription = _("_Tasks Group"); + list->_buffer[1].tooltip = _("Create a new tasks group"); list->_buffer[1].menuShortcut = 'n'; list->_buffer[1].iconName = "evolution-tasks-mini.png"; + list->_buffer[1].type = GNOME_Evolution_CREATABLE_FOLDER; return list; } -- cgit v1.2.3