New. (impl_requestCreateItem): New. (tasks_component_class_init): Install.
* gui/tasks-component.c (impl__get_userCreatableItems): New. (impl_requestCreateItem): New. (tasks_component_class_init): Install. * gui/calendar-component.c (impl__get_userCreatableItems): New. (impl_requestCreateItem): New, for now just a stub. (calendar_component_class_init): Install into the EPV. svn path=/trunk/; revision=23327
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
2003-11-13 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
* gui/tasks-component.c (impl__get_userCreatableItems): New.
|
||||
(impl_requestCreateItem): New.
|
||||
(tasks_component_class_init): Install.
|
||||
|
||||
* gui/calendar-component.c (impl__get_userCreatableItems): New.
|
||||
(impl_requestCreateItem): New, for now just a stub.
|
||||
(calendar_component_class_init): Install into the EPV.
|
||||
|
@ -365,7 +365,6 @@ impl_createControls (PortableServer_Servant servant,
|
||||
}
|
||||
|
||||
|
||||
|
||||
static GNOME_Evolution_CreatableItemTypeList *
|
||||
impl__get_userCreatableItems (PortableServer_Servant servant,
|
||||
CORBA_Environment *ev)
|
||||
|
@ -36,6 +36,10 @@
|
||||
#include "tasks-control.h"
|
||||
#include "widgets/misc/e-source-selector.h"
|
||||
|
||||
|
||||
#define CREATE_TASK_ID "task"
|
||||
|
||||
|
||||
#define PARENT_TYPE bonobo_object_get_type ()
|
||||
|
||||
static BonoboObjectClass *parent_class = NULL;
|
||||
@ -259,6 +263,38 @@ impl_createControls (PortableServer_Servant servant,
|
||||
*corba_view_control = CORBA_Object_duplicate (BONOBO_OBJREF (view_control), ev);
|
||||
}
|
||||
|
||||
static GNOME_Evolution_CreatableItemTypeList *
|
||||
impl__get_userCreatableItems (PortableServer_Servant servant,
|
||||
CORBA_Environment *ev)
|
||||
{
|
||||
GNOME_Evolution_CreatableItemTypeList *list = GNOME_Evolution_CreatableItemTypeList__alloc ();
|
||||
|
||||
list->_length = 1;
|
||||
list->_maximum = list->_length;
|
||||
list->_buffer = GNOME_Evolution_CreatableItemTypeList_allocbuf (list->_length);
|
||||
|
||||
CORBA_sequence_set_release (list, FALSE);
|
||||
|
||||
list->_buffer[0].id = CREATE_TASK_ID;
|
||||
list->_buffer[0].description = _("New task");
|
||||
list->_buffer[0].menuDescription = _("_Task");
|
||||
list->_buffer[0].tooltip = _("Create a new task");
|
||||
list->_buffer[0].menuShortcut = 't';
|
||||
list->_buffer[0].iconName = "new_task-16.png";
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
static void
|
||||
impl_requestCreateItem (PortableServer_Servant servant,
|
||||
const CORBA_char *item_type_name,
|
||||
CORBA_Environment *ev)
|
||||
{
|
||||
/* FIXME: fill me in */
|
||||
|
||||
CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_GNOME_Evolution_Component_UnknownType, NULL);
|
||||
}
|
||||
|
||||
/* Initialization */
|
||||
|
||||
static void
|
||||
@ -269,7 +305,9 @@ tasks_component_class_init (TasksComponentClass *klass)
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
epv->createControls = impl_createControls;
|
||||
epv->createControls = impl_createControls;
|
||||
epv->_get_userCreatableItems = impl__get_userCreatableItems;
|
||||
epv->requestCreateItem = impl_requestCreateItem;
|
||||
|
||||
object_class->dispose = impl_dispose;
|
||||
object_class->finalize = impl_finalize;
|
||||
|
Reference in New Issue
Block a user