aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.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/e-shell.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/e-shell.c')
-rw-r--r--shell/e-shell.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 5c8a7c53cc..2bbe551709 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -412,6 +412,23 @@ impl_Shell_createStorageSetView (PortableServer_Servant servant,
return bonobo_object_corba_objref (BONOBO_OBJECT (control));
}
+static void
+impl_Shell_setLineStatus (PortableServer_Servant servant,
+ CORBA_boolean online,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ EShell *shell;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ shell = E_SHELL (bonobo_object);
+
+ if (online)
+ e_shell_go_online (shell, NULL);
+ else
+ e_shell_go_offline (shell, NULL);
+}
+
/* Set up the ::Activity interface. */
@@ -793,6 +810,7 @@ class_init (EShellClass *klass)
epv->selectUserFolder = impl_Shell_selectUserFolder;
epv->getLocalStorage = impl_Shell_getLocalStorage;
epv->createStorageSetView = impl_Shell_createStorageSetView;
+ epv->setLineStatus = impl_Shell_setLineStatus;
}
static void