aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-12 00:13:15 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-12 00:13:15 +0800
commit64c6a63cf22abea49895554cb7a058adc30cd0fc (patch)
tree5e76ba21e91c467caf9e408a77b8da7af3fa5b80 /mail/component-factory.c
parent562e6437b548f354f071d2430c62abc00f715270 (diff)
downloadgsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar.gz
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar.bz2
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar.lz
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar.xz
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.tar.zst
gsoc2013-evolution-64c6a63cf22abea49895554cb7a058adc30cd0fc.zip
Check nrow, not srow.
2000-08-11 JP Rosevear <jpr@helixcode.com> * mail-config-gui.c (news_edit_clicked): Check nrow, not srow. svn path=/trunk/; revision=4738
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index a88d4e6619..ac35ca8556 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -189,18 +189,15 @@ create_vfolder_storage (EvolutionShellComponent *shell_component)
static void
create_imap_storage (EvolutionShellComponent *shell_component)
{
- const MailConfig *config;
+ const MailConfigService *s;
EvolutionShellClient *shell_client;
Evolution_Shell corba_shell;
EvolutionStorage *storage;
char *source = NULL, *server, *p;
-
- config = mail_config_fetch ();
- if (config->sources) {
- const MailConfigService *s;
- s = (MailConfigService *)config->sources->data;
+
+ s = mail_config_get_default_source ();
+ if (s)
source = s->url;
- }
if (!source || g_strncasecmp (source, "imap://", 7))
return;
@@ -238,18 +235,15 @@ create_imap_storage (EvolutionShellComponent *shell_component)
static void
create_news_storage (EvolutionShellComponent *shell_component)
{
- const MailConfig *config;
+ const MailConfigService *s;
EvolutionShellClient *shell_client;
Evolution_Shell corba_shell;
EvolutionStorage *storage;
char *source=NULL, *server, *p;
- config = mail_config_fetch ();
- if (config->news) {
- const MailConfigService *s;
- s = (MailConfigService *)config->news->data;
+ s = mail_config_get_default_news ();
+ if (s)
source = s->url;
- }
if (!source || g_strncasecmp (source, "news://", 7))
return;