From a8dc6d1f7c41bff972e5cf13898b2dc0d8758c83 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 26 Oct 2001 22:41:11 +0000 Subject: Implement. (class_init): Add the signal "xfer_folder" signal. * evolution-storage.c (impl_Storage_async_xfer_folder): Implement. (class_init): Add the signal "xfer_folder" signal. * evolution-storage.h: New signal "xfer_folder". svn path=/trunk/; revision=14177 --- shell/evolution-storage.c | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'shell/evolution-storage.c') diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c index a2159b5d0e..1948bbf790 100644 --- a/shell/evolution-storage.c +++ b/shell/evolution-storage.c @@ -69,6 +69,7 @@ enum { CREATE_FOLDER, REMOVE_FOLDER, UPDATE_FOLDER, + XFER_FOLDER, LAST_SIGNAL }; @@ -294,7 +295,6 @@ impl_Storage_async_remove_folder (PortableServer_Servant servant, { BonoboObject *bonobo_object; EvolutionStorage *storage; - CORBA_Object obj_dup; bonobo_object = bonobo_object_from_servant (servant); @@ -313,7 +313,16 @@ impl_Storage_async_xfer_folder (PortableServer_Servant servant, const Bonobo_Listener listener, CORBA_Environment *ev) { - g_print ("FIXME: impl_Storage_async_xfer_folder -- implement me!\n"); + BonoboObject *bonobo_object; + EvolutionStorage *storage; + CORBA_Object obj_dup; + + bonobo_object = bonobo_object_from_servant (servant); + storage = EVOLUTION_STORAGE (bonobo_object); + + obj_dup = CORBA_Object_duplicate (listener, ev); + gtk_signal_emit (GTK_OBJECT (storage), signals[REMOVE_FOLDER], + obj_dup, source_path, destination_path, remove_source); } static void @@ -521,7 +530,8 @@ class_init (EvolutionStorageClass *klass) GTK_SIGNAL_OFFSET (EvolutionStorageClass, create_folder), e_marshal_NONE__POINTER_POINTER_POINTER_POINTER_POINTER, - GTK_TYPE_INT, 4, + GTK_TYPE_INT, 5, + GTK_TYPE_POINTER, GTK_TYPE_STRING, GTK_TYPE_STRING, GTK_TYPE_STRING, @@ -533,9 +543,22 @@ class_init (EvolutionStorageClass *klass) GTK_SIGNAL_OFFSET (EvolutionStorageClass, remove_folder), e_marshal_NONE__POINTER_POINTER_POINTER, - GTK_TYPE_INT, 2, + GTK_TYPE_INT, 3, + GTK_TYPE_POINTER, GTK_TYPE_STRING, GTK_TYPE_STRING); + + signals[XFER_FOLDER] = gtk_signal_new ("xfer_folder", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (EvolutionStorageClass, + xfer_folder), + e_marshal_NONE__POINTER_POINTER_POINTER_BOOL, + GTK_TYPE_INT, 4, + GTK_TYPE_POINTER, + GTK_TYPE_STRING, + GTK_TYPE_STRING, + GTK_TYPE_BOOL); signals[UPDATE_FOLDER] = gtk_signal_new ("update_folder", GTK_RUN_FIRST, -- cgit v1.2.3