diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-14 00:59:34 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-14 00:59:34 +0800 |
commit | f59d7438e2498b9a7dcaf3d95e403069338ca0e2 (patch) | |
tree | 9c540a5ea870e15c44981b59d4e211d22b5cc356 /addressbook/demo/addressbook-factory.c | |
parent | 2e19c1630acc12875081163e20ddd9538dafd741 (diff) | |
download | gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar.gz gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar.bz2 gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar.lz gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar.xz gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.tar.zst gsoc2013-evolution-f59d7438e2498b9a7dcaf3d95e403069338ca0e2.zip |
Added an E_FOLDER_CONTACTS section to the get_view function.
2000-03-13 Christopher James Lahey <clahey@helixcode.com>
* shell/e-shell-view.c: Added an E_FOLDER_CONTACTS section to the
get_view function.
* addressbook/demo/Makefile.am: Added files for addressbook bonobo
component. Changed non bonobo version to compile as
test-addressbook.
* addressbook/demo/addressbook.c,
addressbook/demo/addressbook.gnorba,
addressbook/demo/addressbook.h,
addressbook/demo/addressbook-factory.c,
addressbook/demo/addressbook-widget.c,
addressbook/demo/addressbook-widget.h: New factory to create an
addressbook bonobo component.
svn path=/trunk/; revision=2114
Diffstat (limited to 'addressbook/demo/addressbook-factory.c')
-rw-r--r-- | addressbook/demo/addressbook-factory.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/addressbook/demo/addressbook-factory.c b/addressbook/demo/addressbook-factory.c new file mode 100644 index 0000000000..cf59177f84 --- /dev/null +++ b/addressbook/demo/addressbook-factory.c @@ -0,0 +1,47 @@ +/** + * sample-control-factory.c + * + * Copyright 1999, Helix Code, Inc. + * + * Author: + * Nat Friedman (nat@nat.org) + * + */ + +#include <config.h> +#include <gnome.h> +#include <libgnorba/gnorba.h> +#include <bonobo.h> + +#include "addressbook.h" + +CORBA_Environment ev; +CORBA_ORB orb; + +static void +init_bonobo (int argc, char **argv) +{ + + gnome_CORBA_init_with_popt_table ( + "evolution-addressbook", "0.0", + &argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev); + + orb = gnome_CORBA_ORB (); + + if (bonobo_init (orb, NULL, NULL) == FALSE) + g_error (_("Could not initialize Bonobo")); +} + +int +main (int argc, char **argv) +{ + CORBA_exception_init (&ev); + + init_bonobo (argc, argv); + + addressbook_factory_init (); + + bonobo_main (); + + return 0; +} |