aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-30 13:36:32 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-30 13:36:32 +0800
commit55499e0ce4bb8a081d12e7243a0dd42aa55bbbfd (patch)
tree6efa90b13a9dc59a015ed62ac22bb8f2d01881fb /mail/component-factory.c
parentf5fa17c2d0a2069e25d0b49aaf5fd4e8ea8dc4da (diff)
downloadgsoc2013-evolution-55499e0ce4bb8a081d12e7243a0dd42aa55bbbfd.tar.gz
gsoc2013-evolution-55499e0ce4bb8a081d12e7243a0dd42aa55bbbfd.tar.zst
gsoc2013-evolution-55499e0ce4bb8a081d12e7243a0dd42aa55bbbfd.zip
EvolutionShellClient.
svn path=/trunk/; revision=3820
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index deb33b8a22..e29a174188 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -64,7 +64,7 @@ static const EvolutionShellComponentFolderType folder_types[] = {
static GList *browsers;
/* GROSS HACK: for passing to other parts of the program */
-Evolution_Shell global_shell_interface;
+EvolutionShellClient global_shell_client;
/* EvolutionShellComponent methods and signals. */
@@ -143,13 +143,14 @@ create_folder (EvolutionShellComponent *shell_component,
static void
owner_set_cb (EvolutionShellComponent *shell_component,
- Evolution_Shell shell_interface,
+ EvolutionShellClient shell_client,
gpointer user_data)
{
g_print ("evolution-mail: Yeeeh! We have an owner!\n"); /* FIXME */
/* GROSS HACK */
- global_shell_interface = shell_interface;
+ global_shell_client = shell_client;
+
create_vfolder_storage (shell_component);
create_imap_storage (shell_component);
create_news_storage (shell_component);
@@ -211,14 +212,17 @@ component_factory_init (void)
static void
create_vfolder_storage (EvolutionShellComponent *shell_component)
{
+ EvolutionShellClient *shell_client;
Evolution_Shell corba_shell;
EvolutionStorage *storage;
- corba_shell = evolution_shell_component_get_owner (shell_component);
- if (corba_shell == CORBA_OBJECT_NIL) {
+ shell_client = evolution_shell_component_get_owner (shell_component);
+ if (shell_client == NULL) {
g_warning ("We have no shell!?");
return;
}
+
+ corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client));
storage = evolution_storage_new ("VFolders");
if (evolution_storage_register_on_shell (storage, corba_shell) != EVOLUTION_STORAGE_OK) {