diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-03-27 07:31:10 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-03-27 07:31:10 +0800 |
commit | 7b792443de265dbc80d29011bd1c200e515463c8 (patch) | |
tree | 04e68bcbdb5209860cc3c8c39600a567ce767912 /shell/evolution-shell-component-client.c | |
parent | b486701fbef6d5cc2a42787a839460e7845c843f (diff) | |
download | gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar.gz gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar.bz2 gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar.lz gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar.xz gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.tar.zst gsoc2013-evolution-7b792443de265dbc80d29011bd1c200e515463c8.zip |
Get the shell to compile by implementing a missing function.
svn path=/trunk/; revision=8959
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r-- | shell/evolution-shell-component-client.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c index d177cf2577..1f6b0273b6 100644 --- a/shell/evolution-shell-component-client.c +++ b/shell/evolution-shell-component-client.c @@ -127,6 +127,16 @@ dispatch_callback (EvolutionShellComponentClient *shell_component_client, (* callback) (shell_component_client, result, callback_data); } +static EvolutionShellComponentResult +shell_component_result_from_corba_exception (const CORBA_Environment *ev) +{ + if (ev->_major == CORBA_NO_EXCEPTION) + return EVOLUTION_SHELL_COMPONENT_OK; + if (ev->_major == CORBA_SYSTEM_EXCEPTION) + return EVOLUTION_SHELL_COMPONENT_CORBAERROR; + return EVOLUTION_SHELL_COMPONENT_CORBAERROR; /* FIXME? */ +} + /* CORBA listener interface implementation. */ @@ -576,7 +586,7 @@ evolution_shell_component_client_async_create_folder (EvolutionShellComponentCli if (ev._major != CORBA_NO_EXCEPTION && priv->callback != NULL) { (* callback) (shell_component_client, - shell_component_result_from_corba_exception (ev), + shell_component_result_from_corba_exception (&ev), data); priv->callback = NULL; priv->callback_data = NULL; @@ -637,7 +647,7 @@ evolution_shell_component_client_async_xfer_folder (EvolutionShellComponentClien if (ev._major != CORBA_NO_EXCEPTION && priv->callback != NULL) { (* callback) (shell_component_client, - shell_component_result_from_corba_exception (ev), + shell_component_result_from_corba_exception (&ev), data); priv->callback = NULL; priv->callback_data = NULL; |