From 3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 6 Nov 2002 08:26:18 +0000 Subject: ignore the new .server file. 2002-11-05 Chris Toshok * gui/component/.cvsignore: ignore the new .server file. * gui/component/Makefile.am: typical port stuff. switch the .oaf to .server, and leave out a lot of libs so we can actually get things linking. * gui/component/GNOME_Evolution_Addressbook.server.in: rename .oaf.in here. * gui/component/addressbook-component.c: Port to GObject/gnome2. * gui/component/addressbook-config.c: Port to GObject/gnome2. * gui/component/addressbook-factory.c: Port to GObject/gnome2. * gui/component/addressbook-storage.c: Port to GObject/gnome2. * gui/component/addressbook.[ch]: Port to GObject/gnome2. * gui/component/e-address-popup.[ch]: Port to GObject/gnome2. * gui/component/e-address-widget.[ch]: Port to GObject/gnome2. * gui/component/e-cardlist-model.h: Port to GObject/gnome2. svn path=/trunk/; revision=18591 --- addressbook/gui/component/addressbook-factory.c | 48 ++++++------------------- 1 file changed, 10 insertions(+), 38 deletions(-) (limited to 'addressbook/gui/component/addressbook-factory.c') diff --git a/addressbook/gui/component/addressbook-factory.c b/addressbook/gui/component/addressbook-factory.c index 6f675894e0..3e6f4e4598 100644 --- a/addressbook/gui/component/addressbook-factory.c +++ b/addressbook/gui/component/addressbook-factory.c @@ -10,22 +10,14 @@ #include #include -#include -#include -#include -#include +#include #include -#include #include #include #include #include -#ifdef GTKHTML_HAVE_GCONF -#include -#endif - #include "addressbook.h" #include "addressbook-component.h" #include "e-address-widget.h" @@ -33,29 +25,6 @@ #include "addressbook/gui/widgets/e-minicard-control.h" #include "select-names/e-select-names-factory.h" - -static void -init_corba (int *argc, char **argv) -{ - gnome_init_with_popt_table ("evolution-addressbook", "0.0", - *argc, argv, oaf_popt_options, 0, NULL); - - oaf_init (*argc, argv); -} - -static void -init_bonobo (int argc, char **argv) -{ - if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) - g_error (_("Could not initialize Bonobo")); - -#ifdef GTKHTML_HAVE_GCONF - gconf_init (argc, argv, NULL); -#endif - - glade_gnome_init (); -} - int main (int argc, char **argv) { @@ -63,13 +32,11 @@ main (int argc, char **argv) textdomain (PACKAGE); free (malloc (5)); - - init_corba (&argc, argv); - init_bonobo (argc, argv); - - if (!gnome_vfs_init ()) - g_error (_("Could not initialize gnome-vfs")); + gnome_program_init ("evolution-addressbook", VERSION, + LIBGNOMEUI_MODULE, argc, argv, + GNOME_PROGRAM_STANDARD_PROPERTIES, + NULL); /* FIXME: Messy names here. This file should be `main.c'. `addressbook.c' should be `addressbook-control-factory.c' and the functions should be called @@ -86,16 +53,21 @@ main (int argc, char **argv) e_address_widget_factory_init (); e_address_popup_factory_init (); + glade_gnome_init (); e_cursors_init(); +#ifdef PENDING_PORT_WORK e_passwords_init("Addressbook"); +#endif #if 0 g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING); #endif /*g_thread_init (NULL);*/ +#ifdef PENDING_PORT_WORK camel_type_init (); +#endif gtk_widget_push_visual (gdk_rgb_get_visual ()); gtk_widget_push_colormap (gdk_rgb_get_cmap ()); -- cgit v1.2.3