diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-07 08:25:56 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-07 08:25:56 +0800 |
commit | c80c14ffd0ace81afa80c82a137494900fcc0f14 (patch) | |
tree | e95ceb5354d6f6a96cd0bcd184710e657f1b2990 /shell/main.c | |
parent | 8e431aec558b7bdab46ff5c7519dd3776f816338 (diff) | |
download | gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar.gz gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar.bz2 gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar.lz gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar.xz gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.tar.zst gsoc2013-evolution-c80c14ffd0ace81afa80c82a137494900fcc0f14.zip |
More framework work -miguel
svn path=/trunk/; revision=1539
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c new file mode 100644 index 0000000000..76375375dd --- /dev/null +++ b/shell/main.c @@ -0,0 +1,59 @@ +/* + * Main evolution shell application + * + * Authors: + * Miguel de Icaza (miguel@helixcode.com) + * + */ +#include <config.h> +#include <gnome.h> +#include <libgnorba/gnorba.h> +#include <bonobo/gnome-bonobo.h> +#include <e-util/e-gui-utils.h> +#include <e-util/e-cursors.h> +#include <glade/glade.h> +#include <glade/glade-xml.h> + +int shell_debugging = 0; + +poptContext ctx; + +const struct poptOption shell_popt_options [] = { + { "debug", '\0', POPT_ARG_INT, &shell_debugging, 0, + N_("Enables some debugging functions"), N_("LEVEL") }, + { NULL, '\0', 0, NULL, 0 } +}; + +int +main (int argc, char *argv []) +{ + CORBA_Environment ev; + + bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); + textdomain (PACKAGE); + + CORBA_exception_init (&ev); + gnome_CORBA_init_with_popt_table ( + "Evolution", VERSION, &argc, argv, + shell_popt_options, 0, &ctx, GNORBA_INIT_SERVER_FUNC, &ev); + CORBA_exception_free (&ev); + + if (bonobo_init (gnome_CORBA_ORB (), NULL, NULL) == FALSE){ + e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, + _("Failed to initialize the Bonobo component system")); + return 0; + } + + e_cursors_init (); + + glade_gnome_init (); + + bonobo_activate (); + + gtk_main (); + + /* shutdown */ + e_cursors_shutdown (); + + return 0; +} |