diff options
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 27fd585840..69f7a4b110 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -41,9 +41,11 @@ #include <gal/widgets/e-gui-utils.h> #include "mail-local-storage.h" -#include <executive-summary/evolution-services/executive-summary-component.h> #include "component-factory.h" +#ifdef THIS_WAS_BROKEN_AND_WASTED_TIME +#include <executive-summary/evolution-services/executive-summary-component.h> #include "mail-summary.h" +#endif CamelFolder *drafts_folder = NULL; CamelFolder *outbox_folder = NULL; @@ -165,16 +167,17 @@ factory_destroy (BonoboEmbeddable *embeddable, gtk_main_quit (); } +#ifdef THIS_WAS_BROKEN_AND_WASTED_TIME static BonoboObject * summary_fn (BonoboGenericFactory *factory, void *closure) { ExecutiveSummaryComponent *summary_component; - summary_component = executive_summary_component_new (NULL, - create_summary_view, - NULL, NULL); + summary_component = executive_summary_component_new ( + NULL, create_summary_view, NULL, NULL); return BONOBO_OBJECT (summary_component); } +#endif static BonoboObject * factory_fn (BonoboGenericFactory *factory, void *closure) @@ -207,7 +210,9 @@ component_factory_init (void) return; factory = bonobo_generic_factory_new (COMPONENT_FACTORY_ID, factory_fn, NULL); +#ifdef THIS_WAS_BROKEN_AND_WASTED_TIME summary_factory = bonobo_generic_factory_new (SUMMARY_FACTORY_ID, summary_fn, NULL); +#endif if (factory == NULL) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, @@ -215,10 +220,12 @@ component_factory_init (void) exit (1); } +#ifdef THIS_WAS_BROKEN_AND_WASTED_TIME if (summary_factory == NULL) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Cannot initialize Evolution's mail summary component.")); } +#endif } /* FIXME: remove */ |