aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.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/e-shell.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/e-shell.c')
-rw-r--r--shell/e-shell.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 1623162dda..87f19fb4db 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -364,6 +364,35 @@ setup_components (EShell *shell)
CORBA_exception_free (&ev);
}
+/* FIXME what if anything fails here? */
+static void
+set_owner_on_components (EShell *shell)
+{
+ Evolution_Shell corba_shell;
+ EShellPrivate *priv;
+ const char *local_directory;
+ GList *id_list;
+ GList *p;
+
+ priv = shell->priv;
+ local_directory = e_shell_get_local_directory (shell);
+
+ corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell));
+
+ id_list = e_component_registry_get_id_list (priv->component_registry);
+ for (p = id_list; p != NULL; p = p->next) {
+ EvolutionShellComponentClient *component_client;
+ const char *id;
+
+ id = (const char *) p->data;
+ component_client = e_component_registry_get_component_by_id (priv->component_registry, id);
+
+ evolution_shell_component_client_set_owner (component_client, corba_shell, local_directory);
+ }
+
+ e_free_string_list (id_list);
+}
+
/* EShellView destruction callback. */
@@ -549,6 +578,9 @@ e_shell_construct (EShell *shell,
/* The local storage depends on the component registry. */
setup_local_storage (shell);
+ /* Now that we have a local storage, we can tell the components we are here. */
+ set_owner_on_components (shell);
+
shortcut_path = g_concat_dir_and_file (local_directory, "shortcuts.xml");
priv->shortcuts = e_shortcuts_new (priv->storage_set,
priv->folder_type_registry,