aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/component-factory.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c38e76e916..5cb92e31bf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -5,7 +5,8 @@
* component-factory.c (component_factory_init): Remove, not used
anymore, causes linking problems some places.
- (factory): Removed the debug printf.
+ (factory): Removed the debug printf. Added a case for the
+ composer. Part of fixing #39256.
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 854d57d682..5592c4e0a0 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -41,6 +41,7 @@
#include "Evolution.h"
#include "evolution-storage.h"
#include "evolution-wizard.h"
+#include "evolution-composer.h"
#include "folder-browser-factory.h"
#include "evolution-shell-component.h"
@@ -1370,7 +1371,6 @@ add_storage (const char *name, const char *uri, CamelService *store,
}
}
-
void
mail_add_storage (CamelStore *store, const char *name, const char *uri)
{
@@ -1586,6 +1586,7 @@ mail_storages_foreach (GHFunc func, gpointer data)
#define MAIL_CONFIG_IID "OAFIID:GNOME_Evolution_MailConfig"
#define WIZARD_IID "OAFIID:GNOME_Evolution_Mail_Wizard"
#define FOLDER_INFO_IID "OAFIID:GNOME_Evolution_FolderInfo"
+#define COMPOSER_IID "OAFIID:GNOME_Evolution_Mail_Composer"
static BonoboObject *
factory (BonoboGenericFactory *factory,
@@ -1609,6 +1610,8 @@ factory (BonoboGenericFactory *factory,
|| strcmp (component_id, MAIL_COMPOSER_PREFS_CONTROL_ID) == 0
/* || strcmp (component_id, MAIL_FONT_PREFS_CONTROL_ID) == 0 */)
return mail_config_control_factory_cb (factory, component_id, evolution_shell_client_corba_objref (global_shell_client));
+ else if (strcmp(component_id, COMPOSER_IID) == 0)
+ return (BonoboObject *)evolution_composer_new(composer_send_cb, composer_save_draft_cb);
g_warning (FACTORY_ID ": Don't know what to do with %s", component_id);
return NULL;