aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-21 07:17:01 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-21 07:17:01 +0800
commitc854e3d3205b11afc194b0d3a658125056b93a7f (patch)
treebb7b7ff8b51f3bea7dd2c0c7c79cf079e1691fca /shell/main.c
parent7dcbbbdcc48bc2350908bdc43b3e022161acf048 (diff)
downloadgsoc2013-evolution-c854e3d3205b11afc194b0d3a658125056b93a7f.tar.gz
gsoc2013-evolution-c854e3d3205b11afc194b0d3a658125056b93a7f.tar.zst
gsoc2013-evolution-c854e3d3205b11afc194b0d3a658125056b93a7f.zip
(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
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c4
1 files changed, 3 insertions, 1 deletions
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;