aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-client.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-16 01:03:00 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-16 01:03:00 +0800
commitea623b5543210467497c9bcc68e0adc56c7cf40d (patch)
treefd37311432b8bab29de6c8f645dd126fac1a5667 /shell/evolution-shell-client.c
parent5a6a6fcc06b9db9ef2c0f09db64aa32dff47cbd9 (diff)
downloadgsoc2013-evolution-ea623b5543210467497c9bcc68e0adc56c7cf40d.tar.gz
gsoc2013-evolution-ea623b5543210467497c9bcc68e0adc56c7cf40d.tar.zst
gsoc2013-evolution-ea623b5543210467497c9bcc68e0adc56c7cf40d.zip
Add a new IDL function, Evolution::Shell::setLineStatus (in boolean). Bug
2001-08-15 Jason Leach <jleach@ximian.com> * Evolution-Shell.idl: Add a new IDL function, Evolution::Shell::setLineStatus (in boolean). Bug #3030. * e-shell.c (impl_Shell_setLineStatus): Implementation of the above. * evolution-shell-client.c (evolution_shell_client_set_line_status): A wrapper function for the above, this is what a component can call to set the shell on/offline. svn path=/trunk/; revision=12057
Diffstat (limited to 'shell/evolution-shell-client.c')
-rw-r--r--shell/evolution-shell-client.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c
index f3aaf036d7..b907f7e97a 100644
--- a/shell/evolution-shell-client.c
+++ b/shell/evolution-shell-client.c
@@ -471,5 +471,26 @@ evolution_shell_client_get_local_storage (EvolutionShellClient *shell_client)
return corba_local_storage;
}
+void
+evolution_shell_client_set_line_status (EvolutionShellClient *shell_client,
+ gboolean line_status)
+{
+ GNOME_Evolution_Shell corba_shell;
+ CORBA_Environment ev;
+
+ g_return_val_if_fail (shell_client != NULL, CORBA_OBJECT_NIL);
+ g_return_val_if_fail (EVOLUTION_IS_SHELL_CLIENT (shell_client), CORBA_OBJECT_NIL);
+
+ CORBA_exception_init (&ev);
+
+ corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client));
+ if (corba_shell == CORBA_OBJECT_NIL)
+ return;
+
+ GNOME_Evolution_Shell_setLineStatus (corba_shell, line_status, &ev);
+
+ CORBA_exception_free (&ev);
+}
+
E_MAKE_TYPE (evolution_shell_client, "EvolutionShellClient", EvolutionShellClient, class_init, init, PARENT_TYPE)