aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-component-registry.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-10 03:19:36 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-10 03:19:36 +0800
commit7f36752a67c274640378ec096f37e690fd5ca8ed (patch)
treedcc3124da275074dcf11803bb553d2af384858db /shell/e-component-registry.c
parent59d329b5b090175e2ea5ffd06cb20dfcd41a7688 (diff)
downloadgsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.gz
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.bz2
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.lz
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.xz
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.zst
gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.zip
Initial support for creating/removing folders. This implies some new
IDL methods and new functions to implement on the component side. I have also added a simple folder creation dialog in the shell. It's quite unfinished and untested. svn path=/trunk/; revision=3491
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r--shell/e-component-registry.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c
index a2fa72d182..944b5c150b 100644
--- a/shell/e-component-registry.c
+++ b/shell/e-component-registry.c
@@ -34,6 +34,8 @@
#include "Evolution.h"
+#include "evolution-shell-component-client.h"
+
#include "e-component-registry.h"
@@ -45,7 +47,7 @@ typedef struct _Component Component;
struct _Component {
char *id;
- BonoboObjectClient *client;
+ EvolutionShellComponentClient *client;
/* Names of the folder types we support (normal ASCII strings). */
GList *folder_type_names;
@@ -62,7 +64,7 @@ struct _EComponentRegistryPrivate {
static Component *
component_new (const char *id,
- BonoboObjectClient *client)
+ EvolutionShellComponentClient *client)
{
Component *new;
@@ -133,7 +135,7 @@ register_component (EComponentRegistry *component_registry,
Evolution_Shell shell_corba_interface;
Evolution_FolderTypeList *supported_types;
Component *component;
- BonoboObjectClient *client;
+ EvolutionShellComponentClient *client;
CORBA_Environment ev;
CORBA_unsigned_long i;
@@ -144,12 +146,15 @@ register_component (EComponentRegistry *component_registry,
return FALSE;
}
- client = bonobo_object_activate (id, 0);
+ client = evolution_shell_component_client_new (id);
if (client == NULL)
return FALSE;
CORBA_exception_init (&ev);
+ /* FIXME we could use the EvolutionShellComponentClient API here instead, but for
+ now we don't care. */
+
component_corba_interface = bonobo_object_corba_objref (BONOBO_OBJECT (client));
shell_corba_interface = bonobo_object_corba_objref (BONOBO_OBJECT (priv->shell));