aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-09 23:37:57 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-09 23:37:57 +0800
commit0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b (patch)
tree6e13a481003020403586e22409fd683a80f2f99a /shell/main.c
parentc943d7699c3030d5cf4ccca4eae554f6eb79aaae (diff)
downloadgsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar.gz
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar.bz2
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar.lz
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar.xz
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.tar.zst
gsoc2013-evolution-0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b.zip
Display the default inbox at startup, instead of an empty view.
svn path=/trunk/; revision=2944
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 ();