diff options
author | Anders Carlsson <andersca@src.gnome.org> | 2000-06-07 06:34:12 +0800 |
---|---|---|
committer | Anders Carlsson <andersca@src.gnome.org> | 2000-06-07 06:34:12 +0800 |
commit | ff31a1c535578b75c986e555026764dbc51e359d (patch) | |
tree | 6e6a8fad4af5370f4b45f874e9360b69013e9af4 /notes/main.c | |
parent | c219c79496fca669af1ae093a660a1ce4d81a682 (diff) | |
download | gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.gz gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.bz2 gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.lz gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.xz gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.tar.zst gsoc2013-evolution-ff31a1c535578b75c986e555026764dbc51e359d.zip |
Stuff
svn path=/trunk/; revision=3447
Diffstat (limited to 'notes/main.c')
-rw-r--r-- | notes/main.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/notes/main.c b/notes/main.c new file mode 100644 index 0000000000..f3198c0d63 --- /dev/null +++ b/notes/main.c @@ -0,0 +1,52 @@ +/* + * + * Author: + * Anders Carlsson (andersca@gnu.org) + * + * (C) 2000 Helix Code, Inc. + */ + +#include <config.h> +#include <gnome.h> +#include <bonobo.h> +#include <liboaf/liboaf.h> + +#include "e-util/e-gui-utils.h" +#include "component-factory.h" + +static void +init_corba (gint argc, gchar **argv) +{ + gnome_init_with_popt_table ("evolution-notes-component", VERSION, argc, argv, + oaf_popt_options, 0, NULL); + oaf_init (argc, argv); +} + +static void +init_bonobo (void) +{ + if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) { + e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, + _("Notes Component: Could not initialize bonobo")); + exit (1); + } +} + +gint +main (gint argc, gchar **argv) +{ + bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); + textdomain (PACKAGE); + + init_corba (argc, argv); + init_bonobo (); + + e_setup_base_dir (); + + notes_factory_init (); + component_factory_init (); + + bonobo_main (); + + return 0; +} |