aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-11-04 05:58:46 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-11-04 05:58:46 +0800
commit7c64de04114bc7973273fad39c104c2fb33c79e1 (patch)
treed6f38645bdbf8fd49ac84ff7d38aabed7673abe4 /shell/main.c
parent4943fa0e40f481dacb9f72c90110204a36f7b0e7 (diff)
downloadgsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar.gz
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar.bz2
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar.lz
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar.xz
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.tar.zst
gsoc2013-evolution-7c64de04114bc7973273fad39c104c2fb33c79e1.zip
Added a `--no-splash' option to the shell.
svn path=/trunk/; revision=6380
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/shell/main.c b/shell/main.c
index 609a20502e..f71c0ce40d 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -37,7 +37,9 @@
#define STARTUP_URI "evolution:/local/Inbox"
-static EShell *shell;
+static EShell *shell = NULL;
+static char *evolution_directory = NULL;
+static gboolean no_splash = FALSE;
static void
no_views_left_cb (EShell *shell, gpointer data)
@@ -111,11 +113,8 @@ static gint
idle_cb (gpointer data)
{
EShellView *view;
- char *evolution_directory;
- evolution_directory = (char *) data;
-
- shell = e_shell_new (evolution_directory);
+ shell = e_shell_new (evolution_directory, ! no_splash);
g_free (evolution_directory);
if (shell == NULL) {
@@ -141,14 +140,19 @@ idle_cb (gpointer data)
int
main (int argc, char **argv)
{
- char *evolution_directory;
-
- #ifdef ENABLE_NLS
+ struct poptOption options[] = {
+ { "no-splash", '\0', POPT_ARG_NONE, &no_splash, 0, N_("Disable."), NULL },
+ { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &oaf_popt_options, 0, NULL, NULL },
+ POPT_AUTOHELP
+ { NULL, '\0', 0, NULL, 0, NULL, NULL }
+ };
+
+#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
textdomain (PACKAGE);
- #endif
+#endif
- gnome_init_with_popt_table ("Evolution", VERSION, argc, argv, oaf_popt_options, 0, NULL);
+ gnome_init_with_popt_table ("Evolution", VERSION, argc, argv, options, 0, NULL);
oaf_init (argc, argv);
glade_gnome_init ();