aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-10-12 11:48:22 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-12 11:48:22 +0800
commit1b235d03d55ef422e933b04401f991d3aa56d021 (patch)
tree1dbe35f531c30b938f43cac2d86cbed012d6d0c9 /shell/main.c
parent3253815c84e1746ba0217ced7e03a5f15106f14c (diff)
downloadgsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar.gz
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar.bz2
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar.lz
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar.xz
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.tar.zst
gsoc2013-evolution-1b235d03d55ef422e933b04401f991d3aa56d021.zip
Display the default view only if we are starting our own shell, or if the
* main.c (idle_cb): Display the default view only if we are starting our own shell, or if the command-line has no arguments and we are talking to an already existing shell. * e-uri-schema-registry.c (e_uri_schema_registry_set_handler_for_schema): Do not return a value. svn path=/trunk/; revision=13611
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c33
1 files changed, 25 insertions, 8 deletions
diff --git a/shell/main.c b/shell/main.c
index 7ceac7e537..2308862d4d 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -207,6 +207,7 @@ idle_cb (void *data)
EShellConstructResult result;
GSList *p;
gboolean have_evolution_uri;
+ gboolean display_default;
CORBA_exception_init (&ev);
@@ -259,15 +260,31 @@ idle_cb (void *data)
have_evolution_uri = TRUE;
}
- if (! have_evolution_uri) {
- if (shell == NULL || ! e_shell_restore_from_settings (shell)) {
- const char *uri;
-
- uri = E_SHELL_VIEW_DEFAULT_URI;
- GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev);
- if (ev._major != CORBA_NO_EXCEPTION)
- g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri);
+ if (shell == NULL) {
+ if (uri_list == NULL)
+ display_default = TRUE;
+ else
+ display_default = FALSE;
+ } else {
+ if (! have_evolution_uri) {
+ if (! e_shell_restore_from_settings (shell))
+ display_default = TRUE;
+ else
+ display_default = FALSE;
+ } else {
+ display_default = FALSE;
}
+
+ display_default = FALSE;
+ }
+
+ if (display_default) {
+ const char *uri;
+
+ uri = E_SHELL_VIEW_DEFAULT_URI;
+ GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION)
+ g_warning ("CORBA exception %s when requesting URI -- %s", ev._repo_id, uri);
}
for (p = uri_list; p != NULL; p = p->next) {