diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-03 11:17:14 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-03 11:17:14 +0800 |
commit | b6b0c36a3bba3056ee69a9d3eb7a7dc746dacd8a (patch) | |
tree | c8fbf3e0f8f4b684e431944f49f969d3912feb85 /shell/e-shell.c | |
parent | 5b11f6dc1de45412cdfb5aded38b20f1d8bb8ce6 (diff) | |
download | gsoc2013-evolution-b6b0c36a3bba3056ee69a9d3eb7a7dc746dacd8a.tar.gz gsoc2013-evolution-b6b0c36a3bba3056ee69a9d3eb7a7dc746dacd8a.tar.zst gsoc2013-evolution-b6b0c36a3bba3056ee69a9d3eb7a7dc746dacd8a.zip |
Spit out a warning if we cannot resolve "Bonobo/ConfigDatabase" on
* e-shell.c (e_shell_construct): Spit out a warning if we cannot
resolve "Bonobo/ConfigDatabase" on "wombat:". Also, register on
OAF only after we are sure we are not going to return FALSE.
svn path=/trunk/; revision=11603
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c index 62c891e2f8..1b3dcbbde8 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -793,12 +793,6 @@ e_shell_construct (EShell *shell, g_return_val_if_fail (local_directory != NULL, FALSE); g_return_val_if_fail (g_path_is_absolute (local_directory), FALSE); - /* FIXME: Multi-display stuff. */ - - corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (shell)); - if (oaf_active_server_register (iid, corba_object) != OAF_REG_SUCCESS) - return FALSE; - if (! show_splash) { splash = NULL; } else { @@ -827,12 +821,24 @@ e_shell_construct (EShell *shell, priv->db = bonobo_get_object ("wombat:", "Bonobo/ConfigDatabase", &ev); if (BONOBO_EX (&ev) || priv->db == CORBA_OBJECT_NIL) { + g_warning ("Cannot access Bonobo/ConfigDatabase on wombat:"); CORBA_exception_free (&ev); return FALSE; } CORBA_exception_free (&ev); + + /* Now we can register into OAF. Notice that we shouldn't be + registering into OAF until we are sure we can complete the + process. */ + /* FIXME: Multi-display stuff. */ + corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (shell)); + if (oaf_active_server_register (iid, corba_object) != OAF_REG_SUCCESS) { + CORBA_exception_free (&ev); + return FALSE; + } + if (show_splash) setup_components (shell, E_SPLASH (splash)); else |