From c854e3d3205b11afc194b0d3a658125056b93a7f Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 20 Nov 2002 23:17:01 +0000 Subject: (idle_cb): Set displayed_any in the case when we are calling e_shell_create_view(). Also initialize displayed_any to FALSE earlier so we dont' end up opening two views at startup by default. svn path=/trunk/; revision=18870 --- shell/ChangeLog | 7 +++++++ shell/main.c | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index b39cfabce9..7fd4c8f38f 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2002-11-20 Ettore Perazzoli + + * main.c (idle_cb): Set displayed_any in the case when we are + calling e_shell_create_view(). Also initialize displayed_any to + FALSE earlier so we dont' end up opening two views at startup by + default. + 2002-11-20 Ettore Perazzoli * e-shell-folder-selection-dialog.c (impl_dispose): Save the diff --git a/shell/main.c b/shell/main.c index cab1d3c5ad..1f98b2a7aa 100644 --- a/shell/main.c +++ b/shell/main.c @@ -374,6 +374,8 @@ idle_cb (void *data) } have_evolution_uri = FALSE; + displayed_any = FALSE; + for (p = uri_list; p != NULL; p = p->next) { const char *uri; @@ -397,12 +399,12 @@ idle_cb (void *data) if (! have_evolution_uri) { e_shell_create_view (shell, NULL, NULL); display_default = TRUE; + displayed_any = TRUE; } else { display_default = FALSE; } } - displayed_any = FALSE; for (p = uri_list; p != NULL; p = p->next) { const char *uri; -- cgit v1.2.3