aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-client.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-08 19:02:42 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-08 19:02:42 +0800
commit7a7653f20a4e115339a40ceba828a6ccd35e4653 (patch)
tree794ab665f472b782e5951d9d646311fa3637819e /shell/evolution-shell-client.c
parente9913e316c20ef81f371c2a6f449bcdc7d25236f (diff)
downloadgsoc2013-evolution-7a7653f20a4e115339a40ceba828a6ccd35e4653.tar.gz
gsoc2013-evolution-7a7653f20a4e115339a40ceba828a6ccd35e4653.tar.zst
gsoc2013-evolution-7a7653f20a4e115339a40ceba828a6ccd35e4653.zip
Changed so that ::set_owner is called after setting up the local
storage, instead of being called before. svn path=/trunk/; revision=5259
Diffstat (limited to 'shell/evolution-shell-client.c')
-rw-r--r--shell/evolution-shell-client.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/shell/evolution-shell-client.c b/shell/evolution-shell-client.c
index 4e4fd830b3..a380cae22a 100644
--- a/shell/evolution-shell-client.c
+++ b/shell/evolution-shell-client.c
@@ -330,4 +330,41 @@ evolution_shell_client_user_select_folder (EvolutionShellClient *shell_client,
}
+/**
+ * evolution_shell_client_get_local_storage:
+ * @shell_client: An EvolutionShellClient object
+ *
+ * Retrieve the local storage interface for this shell.
+ *
+ * Return value: a pointer to the CORBA object implementing the local storage
+ * in the shell associated with @shell_client.
+ **/
+Evolution_LocalStorage
+evolution_shell_client_get_local_storage (EvolutionShellClient *shell_client)
+{
+ Evolution_Shell corba_shell;
+ Evolution_LocalStorage corba_local_storage;
+ 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 CORBA_OBJECT_NIL;
+
+ corba_local_storage = Evolution_Shell_get_local_storage (corba_shell, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ CORBA_exception_free (&ev);
+ return CORBA_OBJECT_NIL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return corba_local_storage;
+}
+
+
E_MAKE_TYPE (evolution_shell_client, "EvolutionShellClient", EvolutionShellClient, class_init, init, PARENT_TYPE)