aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/evolution-composer.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 22a9dd4b71..d3aad74928 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-27 Dan Winship <danw@ximian.com>
+
+ * evolution-composer.c (factory_fn): If
+ !mail_config_is_configured(), give an error and return NULL.
+
2001-02-22 Ettore Perazzoli <ettore@ximian.com>
* Makefile.am (INCLUDES): Add `-I$(top_srcdir)/shell'.
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c
index 72afc6930e..2ea7949462 100644
--- a/composer/evolution-composer.c
+++ b/composer/evolution-composer.c
@@ -29,6 +29,7 @@
#include <gal/widgets/e-gui-utils.h>
#include <bonobo/bonobo-item-handler.h>
#include "evolution-composer.h"
+#include "mail/mail-config.h"
#define PARENT_TYPE BONOBO_OBJECT_TYPE
static BonoboObjectClass *parent_class = NULL;
@@ -346,6 +347,13 @@ E_MAKE_TYPE (evolution_composer, "EvolutionComposer", EvolutionComposer, class_i
static BonoboObject *
factory_fn (BonoboGenericFactory *factory, void *closure)
{
+ if (!mail_config_is_configured ()) {
+ e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ _("Could not create composer window, because you "
+ "have not yet\nconfigured any identities in the "
+ "mail component."));
+ return NULL;
+ }
return BONOBO_OBJECT (evolution_composer_new ());
}
* Update to 2.14.5.mezz2007-01-242-4/+4 * Update to 2.14.4ahze2006-12-183-11/+11 * INSTALLS_SHLIB -> USE_LDCONFIG.mezz2006-11-051-1/+1 * Correct speeling typo.marcus2006-09-181-1/+1 * Update to 2.14.3.marcus2006-09-052-5/+5 * Drop devel/popt dependency.bland2006-08-071-3/+1 * - Update to 2.14.2ahze2006-07-252-4/+4 * - Update to 2.14.1ahze2006-07-243-12/+12 * - Add header in these *-reference ports.mezz2006-06-011-2/+1 * Move the ORBit2 programming reference to the ORBit2-reference port.jylefort2006-05-102-15/+9 * Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-304-16/+17 * Conversion to a single libtool environment.ade2006-02-232-2/+5 * Fix plist (leftover %D prefix in @dirrmtry entry).bland2006-02-072-3/+4 * Update to 2.12.5bland2006-02-063-9/+19 * - Add SHA256 checksumspav2005-11-241-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1