From 5c1993b9bace20bec8ff95e69aa3f56588eaa87c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 2 Jun 2005 05:51:41 +0000 Subject: only let this be included once. 2005-06-02 Not Zed * Evolution-Mail.idl: only let this be included once. * mail-component.c (mail_component_class_init): Setup a test function, and fix the bonobo init function so we're actually a mailcomponent and not just an evolutioncomponent. svn path=/trunk/; revision=29446 --- mail/mail-component.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index 3e11a8e249..e6d77bba9d 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -860,6 +860,12 @@ impl_upgradeFromVersion (PortableServer_Servant servant, const short major, cons camel_exception_clear (&ex); } +static void +impl_mail_test(PortableServer_Servant servant, CORBA_Environment *ev) +{ + printf("*** Testing mail interface!! ***\n"); +} + /* Initialization. */ static void @@ -883,7 +889,7 @@ mail_component_class_init (MailComponentClass *class) epv->sendAndReceive = impl_sendAndReceive; epv->upgradeFromVersion = impl_upgradeFromVersion; - mepv = mepv; + mepv->test = impl_mail_test; } static void @@ -1175,4 +1181,4 @@ mail_component_get_folder_uri(MailComponent *mc, enum _mail_component_folder_t i return mc_default_folders[id].uri; } -BONOBO_TYPE_FUNC_FULL (MailComponent, GNOME_Evolution_Component, PARENT_TYPE, mail_component) +BONOBO_TYPE_FUNC_FULL (MailComponent, GNOME_Evolution_MailComponent, PARENT_TYPE, mail_component) -- cgit v1.2.3