[evolution-patches] evolution-exchange fails to build due to changing of new shell api



Hi Guys,

When building evolution-exchange, display the error message.
 
"exchange-component.c", line 430: undefined struct/union member:
createControls

As the new shell api changed, related evolution-exchange code should be
also updated. Attached a patch for it. 

Otherwise, 

Regards,
-Simon
Index: evolution-exchange/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.432
diff -u -p -r1.432 ChangeLog
--- evolution-exchange/ChangeLog	21 Dec 2005 06:51:48 -0000	1.432
+++ evolution-exchange/ChangeLog	22 Dec 2005 10:17:57 -0000
@@ -1,5 +1,10 @@
 2005-12-21  Sushma Rai  <rsushma novell com>
 
+	* storage/exchange-component.c (impl_createView): changed
+	from createControls for new shell apis.
+ 
+2005-12-21  Sushma Rai  <rsushma novell com>
+
 	* addressbook/e-book-backend-exchange.c 
 	(e_book_backend_exchange_start_book_view): Added the check for NULL 
 	context.
Index: evolution-exchange/storage/exchange-component.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/exchange-component.c,v
retrieving revision 1.19
diff -u -p -r1.19 exchange-component.c
--- evolution-exchange/storage/exchange-component.c	24 Nov 2005 09:59:58 -0000	1.19
+++ evolution-exchange/storage/exchange-component.c	22 Dec 2005 10:17:57 -0000
@@ -22,6 +22,7 @@
 #endif
 
 #include "exchange-component.h"
+#include "shell/e-component-view.h"
 
 #include <unistd.h>
 
@@ -140,16 +141,19 @@ finalize (GObject *object)
 	G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
-static void
-impl_createControls (PortableServer_Servant servant,
-		     Bonobo_Control *sidebar_control,
-		     Bonobo_Control *view_control,
-		     Bonobo_Control *statusbar_control,
-		     CORBA_Environment *ev)
-{
-	d(printf("createControls...\n"));
+static GNOME_Evolution_ComponentView
+impl_createView (PortableServer_Servant servant,
+		 GNOME_Evolution_ShellView parent,
+		 CORBA_Environment *ev)
+{
+	d(printf("createView...\n"));
+
+	EComponentView *component_view = e_component_view_new_controls (parent, "exchange",
+                                                        		NULL,
+									NULL,
+                                                        		NULL);
 
-	*sidebar_control = *view_control = *statusbar_control = NULL;
+        return BONOBO_OBJREF(component_view);
 }
 
 static void
@@ -427,7 +431,7 @@ exchange_component_class_init (ExchangeC
 	object_class->dispose = dispose;
 	object_class->finalize = finalize;
 
-	epv->createControls     = impl_createControls;
+	epv->createView     	= impl_createView;
 	epv->upgradeFromVersion = impl_upgradeFromVersion;
 	epv->requestQuit        = impl_requestQuit;
 	epv->quit               = impl_quit;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]