diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-09 23:37:57 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-09 23:37:57 +0800 |
commit | 0f8c6c783deb1b2d61c81f8fb27c63ba3ebadc1b (patch) | |
tree | 6e13a481003020403586e22409fd683a80f2f99a /shell/main.c | |
parent | c943d7699c3030d5cf4ccca4eae554f6eb79aaae (diff) | |
download | gsoc2013-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.c | 17 |
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 (); |