aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-client.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-28 12:50:02 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-28 12:50:02 +0800
commit268c7dbe4254f54f55d2bed8a9c740ee89dd9aed (patch)
tree8e0d46102300870ed29c743fa29cff4522044dba /shell/evolution-shell-component-client.c
parent764cfb5a6ba195958b1b3b814fdb584d6a5ff63b (diff)
downloadgsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.tar.gz
gsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.tar.zst
gsoc2013-evolution-268c7dbe4254f54f55d2bed8a9c740ee89dd9aed.zip
Make the shell to be able to display URIs that the user specified on
the command-line. svn path=/trunk/; revision=10554
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r--shell/evolution-shell-component-client.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c
index b2ca961685..60b39d9aa2 100644
--- a/shell/evolution-shell-component-client.c
+++ b/shell/evolution-shell-component-client.c
@@ -82,6 +82,8 @@ corba_exception_to_result (const CORBA_Environment *ev)
return EVOLUTION_SHELL_COMPONENT_INTERNALERROR;
if (strcmp (ev->_repo_id, ex_GNOME_Evolution_ShellComponent_Busy) == 0)
return EVOLUTION_SHELL_COMPONENT_BUSY;
+ if (strcmp (ev->_repo_id, ex_GNOME_Evolution_ShellComponent_UnsupportedSchema) == 0)
+ return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDSCHEMA;
return EVOLUTION_SHELL_COMPONENT_UNKNOWNERROR;
} else {
@@ -594,6 +596,30 @@ evolution_shell_component_client_create_view (EvolutionShellComponentClient *she
return result;
}
+EvolutionShellComponentResult
+evolution_shell_component_client_handle_external_uri (EvolutionShellComponentClient *shell_component_client,
+ const char *uri)
+{
+ GNOME_Evolution_ShellComponent corba_component;
+ CORBA_Environment ev;
+ EvolutionShellComponentResult result;
+
+ RETURN_ERROR_IF_FAIL (shell_component_client != NULL);
+ RETURN_ERROR_IF_FAIL (EVOLUTION_IS_SHELL_COMPONENT_CLIENT (shell_component_client));
+ RETURN_ERROR_IF_FAIL (uri != NULL);
+
+ CORBA_exception_init (&ev);
+
+ corba_component = bonobo_object_corba_objref (BONOBO_OBJECT (shell_component_client));
+ GNOME_Evolution_ShellComponent_handleExternalURI (corba_component, uri, &ev);
+
+ result = corba_exception_to_result (&ev);
+
+ CORBA_exception_free (&ev);
+
+ return result;
+}
+
/* Asyncronous operations. */