From 954e8117ea873964175c639cb1b572cb73f83d84 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Thu, 27 Feb 2003 02:25:29 +0000 Subject: This makes creating appointments and tasks from the "New" button work. 2003-02-26 Hans Petter Jansson This makes creating appointments and tasks from the "New" button work. * gui/main.c (comp_editor_factory_fn): Doesn't need to take any args. (factory): Add a handler for CompEditorFactory. svn path=/trunk/; revision=20082 --- calendar/ChangeLog | 7 +++++++ calendar/gui/main.c | 15 +++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 1bd2c7bf33..85f3b7661e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2003-02-26 Hans Petter Jansson + + This makes creating appointments and tasks from the "New" button work. + + * gui/main.c (comp_editor_factory_fn): Doesn't need to take any args. + (factory): Add a handler for CompEditorFactory. + 2003-02-26 Hans Petter Jansson Fixes Ximian #37895. diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 592eeb9659..11837a37b3 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -52,11 +52,12 @@ #define FACTORY_ID "OAFIID:GNOME_Evolution_Calendar_Factory" -#define CALENDAR_COMPONENT_ID "OAFIID:GNOME_Evolution_Calendar_ShellComponent" -#define CALENDAR_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_Control" -#define TASKS_CONTROL_ID "OAFIID:GNOME_Evolution_Tasks_Control" -#define ITIP_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_iTip_Control" -#define CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_ConfigControl" +#define CALENDAR_COMPONENT_ID "OAFIID:GNOME_Evolution_Calendar_ShellComponent" +#define CALENDAR_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_Control" +#define TASKS_CONTROL_ID "OAFIID:GNOME_Evolution_Tasks_Control" +#define ITIP_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_iTip_Control" +#define CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_ConfigControl" +#define COMP_EDITOR_FACTORY_ID "OAFIID:GNOME_Evolution_Calendar_CompEditorFactory" ECompEditorRegistry *comp_editor_registry = NULL; @@ -68,7 +69,7 @@ static CompEditorFactory *comp_editor_factory = NULL; * references a singleton service object. */ static BonoboObject * -comp_editor_factory_fn (BonoboGenericFactory *factory, const char *id, void *data) +comp_editor_factory_fn (void) { if (!comp_editor_factory) { comp_editor_factory = comp_editor_factory_new (); @@ -169,6 +170,8 @@ factory (BonoboGenericFactory *factory, else return BONOBO_OBJECT (cal_prefs_dialog_new ()); } + if (strcmp (component_id, COMP_EDITOR_FACTORY_ID) == 0) + return BONOBO_OBJECT (comp_editor_factory_fn ()); g_warning (FACTORY_ID ": Don't know what to do with %s", component_id); return NULL; -- cgit v1.2.3