aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-storage-listener.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-12 02:28:22 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-12 02:28:22 +0800
commit2b9fedff8b596d7a26cde14fb51012a9b1335f5c (patch)
tree9cbd79f4605d78af4a402dc20f42489df34b7f52 /shell/evolution-storage-listener.c
parent4889cc0a361e693fb9aa852e58ce5fa9bf889f5a (diff)
downloadgsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar.gz
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar.bz2
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar.lz
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar.xz
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.tar.zst
gsoc2013-evolution-2b9fedff8b596d7a26cde14fb51012a9b1335f5c.zip
Make `EvolutionStorage' and `ELocalstorage' actually update the CORBA
listeners and fix a bug with the creation of the `EvolutionStorageListener' servant. svn path=/trunk/; revision=5334
Diffstat (limited to 'shell/evolution-storage-listener.c')
-rw-r--r--shell/evolution-storage-listener.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/shell/evolution-storage-listener.c b/shell/evolution-storage-listener.c
index 7f1e64e70f..e059fd72b6 100644
--- a/shell/evolution-storage-listener.c
+++ b/shell/evolution-storage-listener.c
@@ -115,7 +115,7 @@ create_servant (EvolutionStorageListener *listener)
CORBA_exception_init (&ev);
- servant = g_new (EvolutionStorageListenerServant, 1);
+ servant = g_new0 (EvolutionStorageListenerServant, 1);
corba_servant = (POA_Evolution_StorageListener *) servant;
corba_servant->vepv = &my_Evolution_StorageListener_vepv;
@@ -302,5 +302,27 @@ evolution_storage_listener_new (void)
}
+/**
+ * evolution_storage_listener_corba_objref:
+ * @listener: A pointer to an EvolutionStorageListener
+ *
+ * Get the CORBA object reference for the interface embedded in this GTK+
+ * object wrapper.
+ *
+ * Return value: A pointer to the CORBA object reference.
+ **/
+Evolution_StorageListener
+evolution_storage_listener_corba_objref (EvolutionStorageListener *listener)
+{
+ EvolutionStorageListenerPrivate *priv;
+
+ g_return_val_if_fail (listener != NULL, CORBA_OBJECT_NIL);
+ g_return_val_if_fail (EVOLUTION_IS_STORAGE_LISTENER (listener), CORBA_OBJECT_NIL);
+
+ priv = listener->priv;
+ return priv->corba_objref;
+}
+
+
E_MAKE_TYPE (evolution_storage_listener, "EvolutionStorageListener", EvolutionStorageListener,
class_init, init, PARENT_TYPE)