diff options
author | nobody <nobody@localhost> | 2000-03-29 08:30:07 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-03-29 08:30:07 +0800 |
commit | b7cd96d0dd7466c74efbc647601b4fd867bc9004 (patch) | |
tree | 828b9805c964e1d00a9ba6be3c1dc64f78be9523 /shell/main.c | |
parent | bce1144ad7cd318cb193eb39aecc42cf8a87358e (diff) | |
download | gsoc2013-evolution-help.tar gsoc2013-evolution-help.tar.gz gsoc2013-evolution-help.tar.bz2 gsoc2013-evolution-help.tar.lz gsoc2013-evolution-help.tar.xz gsoc2013-evolution-help.tar.zst gsoc2013-evolution-help.zip |
This commit was manufactured by cvs2svn to create tag 'help'.help
svn path=/tags/help/; revision=2234
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/shell/main.c b/shell/main.c deleted file mode 100644 index 1c93579d85..0000000000 --- a/shell/main.c +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Main evolution shell application - * - * Authors: - * Miguel de Icaza (miguel@helixcode.com) - * - */ -#include <config.h> -#include <gnome.h> -#include <libgnorba/gnorba.h> -#include <bonobo.h> -#include <e-util/e-gui-utils.h> -#include <e-util/e-cursors.h> -#include <glade/glade.h> -#include <glade/glade-xml.h> -#include "e-shell.h" -#include "e-shell-view.h" - -int shell_debugging = 0; - -poptContext ctx; - -EShell *eshell; - -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 } -}; - -static void -corba_init (int *argc, char *argv []) -{ - CORBA_Environment ev; - - 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")); - exit (1); - } -} - -static void -gui_init (void) -{ - e_cursors_init (); - - glade_gnome_init (); - - bonobo_activate (); -} - -static void -gui_shutdown (void) -{ - /* shutdown */ - e_cursors_shutdown (); -} - -static void -evolution_boot (void) -{ - EShellView *e_shell_view; - - eshell = e_shell_new (); - e_shell_view = E_SHELL_VIEW ( - e_shell_view_new (eshell, - eshell->default_folders.inbox, - TRUE)); - gtk_signal_connect (GTK_OBJECT (e_shell_view), "destroy", - GTK_SIGNAL_FUNC(gtk_main_quit), - NULL); - - gtk_widget_show (GTK_WIDGET (e_shell_view)); -} - -int -main (int argc, char *argv []) -{ - bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); - textdomain (PACKAGE); - - corba_init (&argc, argv); - gui_init (); - - evolution_boot (); - - gtk_main (); - - gui_shutdown (); - - return 0; -} |