/* Notify the observers */
g_signal_emit (self, signals[ACCOUNT_INSERTED_SIGNAL], 0, account_name);
+ modest_platform_emit_account_created_signal (account_name);
/* if no default account has been defined yet, do so now */
default_account = modest_account_mgr_get_default_account (self);
/* Notify the observers */
g_signal_emit (self, signals[ACCOUNT_INSERTED_SIGNAL], 0, name);
+ modest_platform_emit_account_created_signal (name);
/* if no default account has been defined yet, do so now */
default_account = modest_account_mgr_get_default_account (self);
the keys, because otherwise a call to account_names
will retrieve also the deleted account */
g_signal_emit (G_OBJECT(self), signals[ACCOUNT_REMOVED_SIGNAL], 0, name);
+ modest_platform_emit_account_removed_signal (name);
return TRUE;
}
g_printerr ("modest: error setting bool '%s': %s\n", keyname, err->message);
g_error_free (err);
retval = FALSE;
+ } else {
+ /* check whether this field is one of those interesting for the
+ * "account-updated" signal */
+ if (strcmp (key, MODEST_ACCOUNT_HAS_NEW_MAILS) == 0) {
+ g_signal_emit (G_OBJECT(self), signals[ACCOUNT_UPDATED_SIGNAL],
+ 0, name);
+ }
}
return retval;
if (enabled && priv->has_enabled_accounts)
return TRUE;
- else if (priv->has_accounts)
+ else if (!enabled && priv->has_accounts)
return TRUE;
/* Check that at least one account exists: */