From 222645151f9ba0c906ce50af6e969d79a480f66a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 7 Nov 2002 22:47:47 +0000 Subject: Initial port of gui/ subdir to GNOME 2 2002-11-07 JP Rosevear * Initial port of gui/ subdir to GNOME 2 svn path=/trunk/; revision=18648 --- calendar/gui/main.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'calendar/gui/main.c') diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 5d9bdf30c5..2b21346300 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -25,13 +25,11 @@ #endif #include -#include #include -#include +#include #include #include -#include #include #include #include @@ -58,12 +56,12 @@ static void init_bonobo (int argc, char **argv) { if (gnome_init_with_popt_table ("evolution-calendar", VERSION, argc, argv, - oaf_popt_options, 0, NULL) != 0) + bonobo_activation_popt_options, 0, NULL) != 0) g_error (_("Could not initialize GNOME")); - oaf_init (argc, argv); + bonobo_activation_init (argc, argv); - if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) + if (bonobo_init (&argc, argv) == FALSE) g_error (_("Could not initialize Bonobo")); if (!bonobo_activate ()) @@ -74,7 +72,7 @@ init_bonobo (int argc, char **argv) * references a singleton service object. */ static BonoboObject * -comp_editor_factory_fn (BonoboGenericFactory *factory, void *data) +comp_editor_factory_fn (BonoboGenericFactory *factory, const char *id, void *data) { if (!comp_editor_factory) { comp_editor_factory = comp_editor_factory_new (); @@ -115,7 +113,7 @@ launch_alarm_daemon_cb (gpointer data) /* activate the alarm daemon */ CORBA_exception_init (&ev); - an = oaf_activate_from_id ("OAFIID:GNOME_Evolution_Calendar_AlarmNotify", 0, NULL, &ev); + an = bonobo_activation_activate_from_id ("OAFIID:GNOME_Evolution_Calendar_AlarmNotify", 0, NULL, &ev); if (BONOBO_EX (&ev)) { g_message ("launch_alarm_daemon_cb(): Could not activate the alarm notification service"); -- cgit v1.2.3