diff options
author | JP Rosevear <jpr@novell.com> | 2005-01-10 10:35:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-01-10 10:35:12 +0800 |
commit | 4722208003c3c4307530a18ce07303134a20bd15 (patch) | |
tree | 7f5d00eedf1b251c392d150a82fdcc60a86d7436 /shell/e-shell.c | |
parent | fc2814312a2a3c035f606a5bff2584552fba76c4 (diff) | |
download | gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar.gz gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar.bz2 gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar.lz gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar.xz gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.tar.zst gsoc2013-evolution-4722208003c3c4307530a18ce07303134a20bd15.zip |
open a new window if we get a component id type url
2005-01-09 JP Rosevear <jpr@novell.com>
* e-shell.c (impl_Shell_handleURI): open a new window if we get a
component id type url
* Evolution-Shell.idl: add ComponentNotFound exception
svn path=/trunk/; revision=28302
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c index 9ce18b1422..0b77ebcf9f 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -255,7 +255,7 @@ impl_Shell_handleURI (PortableServer_Servant servant, if (p) *p = 0; - component_info = e_component_registry_peek_info(shell->priv->component_registry, ECR_FIELD_SCHEMA, schema); + component_info = e_component_registry_peek_info(shell->priv->component_registry, ECR_FIELD_SCHEMA, schema); if (component_info == NULL) { show = TRUE; component_info = e_component_registry_peek_info(shell->priv->component_registry, ECR_FIELD_ALIAS, schema); @@ -266,9 +266,16 @@ impl_Shell_handleURI (PortableServer_Servant servant, return; } - if (show && shell->priv->windows) - e_shell_window_switch_to_component((EShellWindow *)shell->priv->windows->data, component_info->id); - + if (show) { + GtkWidget *shell_window; + + shell_window = e_shell_create_window (shell, component_info->id, NULL); + if (shell_window == NULL) { + CORBA_exception_set (ev, CORBA_USER_EXCEPTION, ex_GNOME_Evolution_Shell_ComponentNotFound, NULL); + return; + } + } + GNOME_Evolution_Component_handleURI (component_info->iface, uri, ev); /* not an error not to implement it */ if (ev->_id != NULL && strcmp(ev->_id, ex_CORBA_NO_IMPLEMENT) == 0) |