diff options
author | Dan Winship <danw@src.gnome.org> | 2002-09-13 23:05:44 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-09-13 23:05:44 +0800 |
commit | e2e4b1120cecd53623265d6850ed4693d72233ba (patch) | |
tree | 38c331a50b0402afaf614f5c5bf039eede1a8cc2 /mail/mail-config.c | |
parent | dbe5c76eb0241a143c365f0f2731830e04fe1cc7 (diff) | |
download | gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar.gz gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar.bz2 gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar.lz gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar.xz gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.tar.zst gsoc2013-evolution-e2e4b1120cecd53623265d6850ed4693d72233ba.zip |
rename this from "Mail.idl" so that the generated .h file won't overwrite
* Mailer.idl: rename this from "Mail.idl" so that the generated .h
file won't overwrite "mail.h" on Mac OS X. Remove some
never-implemented IDL and add MailConfig_removeAccount.
* Makefile.am: Update for IDL rename
* mail-config.c: #include Mailer.h, not Mail.h
(impl_GNOME_Evolution_MailConfig_removeAccount): Implement.
* folder-info.c: #include Mailer.h, not Mail.h
* message-list.c: Remove Mail.h include.
svn path=/trunk/; revision=18060
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 46c063305a..bfe5608925 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -69,7 +69,7 @@ #include "mail-mt.h" #include "mail-tools.h" -#include "Mail.h" +#include "Mailer.h" MailConfigLabel label_defaults[5] = { @@ -2836,12 +2836,25 @@ impl_GNOME_Evolution_MailConfig_addAccount (PortableServer_Servant servant, } static void +impl_GNOME_Evolution_MailConfig_removeAccount (PortableServer_Servant servant, + const CORBA_char *name, + CORBA_Environment *ev) +{ + MailConfigAccount *account; + + account = (MailConfigAccount *)mail_config_get_account_by_name (name); + if (account) + mail_config_remove_account (account); +} + +static void evolution_mail_config_class_init (EvolutionMailConfigClass *klass) { POA_GNOME_Evolution_MailConfig__epv *epv = &klass->epv; parent_class = gtk_type_class (PARENT_TYPE); epv->addAccount = impl_GNOME_Evolution_MailConfig_addAccount; + epv->removeAccount = impl_GNOME_Evolution_MailConfig_removeAccount; } static void |