aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2004-04-09 23:56:21 +0800
committerDan Winship <danw@src.gnome.org>2004-04-09 23:56:21 +0800
commit4a8b6d717107d83401695ffdec711a5452095c27 (patch)
treeb5089994caf758d256c733330738deb95d4c163c /calendar/gui/calendar-component.c
parentc35cccb170c74c3656ce0981b7e6376d712fca5b (diff)
downloadgsoc2013-evolution-4a8b6d717107d83401695ffdec711a5452095c27.tar.gz
gsoc2013-evolution-4a8b6d717107d83401695ffdec711a5452095c27.tar.zst
gsoc2013-evolution-4a8b6d717107d83401695ffdec711a5452095c27.zip
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
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 566e5b15d7..ccc5f888e9 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -925,6 +925,7 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
list->_buffer[0].tooltip = _("Create a new appointment");
list->_buffer[0].menuShortcut = 'a';
list->_buffer[0].iconName = "new_appointment.xpm";
+ list->_buffer[0].type = GNOME_Evolution_CREATABLE_OBJECT;
list->_buffer[1].id = CREATE_MEETING_ID;
list->_buffer[1].description = _("New meeting");
@@ -932,6 +933,7 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
list->_buffer[1].tooltip = _("Create a new meeting request");
list->_buffer[1].menuShortcut = 'e';
list->_buffer[1].iconName = "meeting-request-16.png";
+ list->_buffer[1].type = GNOME_Evolution_CREATABLE_OBJECT;
list->_buffer[2].id = CREATE_ALLDAY_EVENT_ID;
list->_buffer[2].description = _("New all day appointment");
@@ -939,6 +941,7 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
list->_buffer[2].tooltip = _("Create a new all-day appointment");
list->_buffer[2].menuShortcut = 'd';
list->_buffer[2].iconName = "new_all_day_event.png";
+ list->_buffer[2].type = GNOME_Evolution_CREATABLE_OBJECT;
list->_buffer[3].id = CREATE_CALENDAR_ID;
list->_buffer[3].description = _("New calendar");
@@ -946,6 +949,7 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
list->_buffer[3].tooltip = _("Create a new calendar");
list->_buffer[3].menuShortcut = 'a';
list->_buffer[3].iconName = "evolution-calendar-mini.png";
+ list->_buffer[3].type = GNOME_Evolution_CREATABLE_FOLDER;
return list;
}