diff options
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r-- | calendar/gui/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 681417f1df..73b3705b3c 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -47,12 +47,14 @@ #include "control-factory.h" #include "itip-bonobo-control.h" #include "tasks-control.h" +#include "tasks-component.h" #define FACTORY_ID "OAFIID:GNOME_Evolution_Calendar_Factory_2" #define CALENDAR_COMPONENT_ID "OAFIID:GNOME_Evolution_Calendar_Component" #define CALENDAR_CONTROL_ID "OAFIID:GNOME_Evolution_Calendar_Control" +#define TASKS_COMPONENT_ID "OAFIID:GNOME_Evolution_Tasks_Component" #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" @@ -161,7 +163,11 @@ factory (BonoboGenericFactory *factory, return object; } else if (strcmp (component_id, CALENDAR_CONTROL_ID) == 0) return BONOBO_OBJECT (control_factory_new_control ()); - else if (strcmp (component_id, TASKS_CONTROL_ID) == 0) + else if (strcmp (component_id, TASKS_COMPONENT_ID) == 0) { + BonoboObject *object = BONOBO_OBJECT (tasks_component_peek ()); + bonobo_object_ref (object); + return object; + } else if (strcmp (component_id, TASKS_CONTROL_ID) == 0) return BONOBO_OBJECT (tasks_control_new ()); else if (strcmp (component_id, ITIP_CONTROL_ID) == 0) return BONOBO_OBJECT (itip_bonobo_control_new ()); |