diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-06 16:26:18 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-06 16:26:18 +0800 |
commit | 3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42 (patch) | |
tree | 6a881563c902748b9e93f9b42e56881c34204791 /addressbook/gui/component/addressbook-factory.c | |
parent | 5ae49242fcdbdb41bdfa642f43eb1805dc209534 (diff) | |
download | gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar.gz gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar.bz2 gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar.lz gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar.xz gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.tar.zst gsoc2013-evolution-3f73fe7fd078c0c5a91b2714dbb1c7ab25267d42.zip |
ignore the new .server file.
2002-11-05 Chris Toshok <toshok@ximian.com>
* 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
Diffstat (limited to 'addressbook/gui/component/addressbook-factory.c')
-rw-r--r-- | addressbook/gui/component/addressbook-factory.c | 48 |
1 files changed, 10 insertions, 38 deletions
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 <config.h> #include <glib.h> -#include <libgnome/gnome-defs.h> -#include <libgnome/gnome-i18n.h> -#include <libgnomeui/gnome-init.h> -#include <liboaf/liboaf.h> +#include <libgnomeui/gnome-ui-init.h> #include <bonobo/bonobo-main.h> -#include <libgnomevfs/gnome-vfs-init.h> #include <glade/glade.h> #include <gal/widgets/e-cursors.h> #include <e-util/e-passwords.h> #include <camel/camel.h> -#ifdef GTKHTML_HAVE_GCONF -#include <gconf/gconf.h> -#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 ()); |