aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-12-04 04:08:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-12-04 04:08:14 +0800
commit9407166101cd70d7920e1122eb96617b6028ea38 (patch)
tree384466b3c878b251b14ba88abf71c7a3ab85767b /shell/main.c
parentda19e7a409b666b83895376bf4fe5b4f8d052f86 (diff)
downloadgsoc2013-evolution-9407166101cd70d7920e1122eb96617b6028ea38.tar.gz
gsoc2013-evolution-9407166101cd70d7920e1122eb96617b6028ea38.tar.zst
gsoc2013-evolution-9407166101cd70d7920e1122eb96617b6028ea38.zip
If component_id is the empty string, pass NULL for it to
* e-shell.c (impl_Shell_createNewWindow): If component_id is the empty string, pass NULL for it to e_shell_create_window() so we get the default. * main.c (idle_cb): Pass an empty string for component_id to createNewWindow() if the default_component_id is NULL. svn path=/trunk/; revision=23620
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index dfc4a17643..2807600f68 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -436,7 +436,10 @@ idle_cb (void *data)
CORBA_Environment ev;
CORBA_exception_init (&ev);
- GNOME_Evolution_Shell_createNewWindow (corba_shell, default_component_id, &ev);
+ if (default_component_id == NULL)
+ GNOME_Evolution_Shell_createNewWindow (corba_shell, "", &ev);
+ else
+ GNOME_Evolution_Shell_createNewWindow (corba_shell, default_component_id, &ev);
CORBA_exception_free (&ev);
}