From 268c7dbe4254f54f55d2bed8a9c740ee89dd9aed Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 28 Jun 2001 04:50:02 +0000 Subject: Make the shell to be able to display URIs that the user specified on the command-line. svn path=/trunk/; revision=10554 --- shell/evolution-shell-component-client.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'shell/evolution-shell-component-client.c') 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. */ -- cgit v1.2.3