aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index 5ab33823e9..1cb31909c5 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -30,6 +30,9 @@
#include "e-shell.h"
+#define STARTUP_URI "evolution:/local/Inbox"
+
+
static void
no_views_left_cb (EShell *shell, gpointer data)
{
@@ -79,6 +82,18 @@ init_corba (int *argc, char **argv)
#endif /* USING_OAF */
+static gint
+new_view_idle_cb (gpointer data)
+{
+ EShell *shell;
+
+ shell = E_SHELL (data);
+ e_shell_new_view (shell, STARTUP_URI);
+
+ return FALSE;
+}
+
+
int
main (int argc, char **argv)
{
@@ -113,7 +128,7 @@ main (int argc, char **argv)
gtk_signal_connect (GTK_OBJECT (shell), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
- e_shell_new_view (shell, NULL);
+ gtk_idle_add (new_view_idle_cb, shell);
bonobo_main ();