+2002-09-25
+
+ * src/account.c: account_read_config_all(): set account information
+ to default before initializing with configuration file.
+ * src/prefs_account.[ch]: prefs_account_new(): new. It returns a
+ newly created account information structure initialized by
+ the default settings.
+
2002-09-24
* src/addr_compl.c:
+2002-09-26 [paul] 0.8.3claws24
+
+ * sync with 0.8.3cvs6
+ see ChangeLog 2002-09-25
+
2002-09-25 [christoph] 0.8.3claws23
* src/prefs_common.c
+2002-09-25
+
+ * src/account.c: account_read_config_all(): ¥¢¥«¥¦¥ó¥È¾ðÊó¤òÀßÄê
+ ¥Õ¥¡¥¤¥ë¤Ç½é´ü²½¤¹¤ëÁ°¤Ë¥Ç¥Õ¥©¥ë¥È¤ËÀßÄꤹ¤ë¤è¤¦¤Ë¤·¤¿¡£
+ * src/prefs_account.[ch]: prefs_account_new(): ¿·µ¬¡£¥Ç¥Õ¥©¥ë¥È¤Î
+ ÀßÄê¤Ç½é´ü²½¤µ¤ì¤¿¥¢¥«¥¦¥ó¥È¾ðÊó¹½Â¤ÂΤò¿·µ¬¤ËºîÀ®¤·¤ÆÊÖ¤¹¡£
+
2002-09-24
* src/addr_compl.c:
MICRO_VERSION=3
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws23
+EXTRA_VERSION=claws24
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
/* read config data from file */
cur_account = NULL;
for (cur = ac_label_list; cur != NULL; cur = cur->next) {
- ac_prefs = g_new0(PrefsAccount, 1);
+ ac_prefs = prefs_account_new();
prefs_account_read_config(ac_prefs, (gchar *)cur->data);
account_list = g_list_append(account_list, ac_prefs);
if (ac_prefs->is_default)
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
};
+static gint prefs_account_get_new_id (void);
+
static void prefs_account_create (void);
static void prefs_account_basic_create (void);
static void prefs_account_receive_create (void);
static gint prefs_account_apply (void);
static void prefs_account_cancel (void);
+PrefsAccount *prefs_account_new(void)
+{
+ PrefsAccount *ac_prefs;
+
+ ac_prefs = g_new0(PrefsAccount, 1);
+ memset(&tmp_ac_prefs, 0, sizeof(PrefsAccount));
+ prefs_set_default(param);
+ *ac_prefs = tmp_ac_prefs;
+ ac_prefs->account_id = prefs_account_get_new_id();
+
+ return ac_prefs;
+}
+
void prefs_account_read_config(PrefsAccount *ac_prefs, const gchar *label)
{
const gchar *p = label;
cancelled = FALSE;
if (!ac_prefs) {
- ac_prefs = g_new0(PrefsAccount, 1);
- memset(&tmp_ac_prefs, 0, sizeof(PrefsAccount));
- prefs_set_default(param);
- *ac_prefs = tmp_ac_prefs;
- ac_prefs->account_id = prefs_account_get_new_id();
+ ac_prefs = prefs_account_new();
new_account = TRUE;
}
RemoteFolder *folder;
};
+PrefsAccount *prefs_account_new (void);
+
void prefs_account_read_config (PrefsAccount *ac_prefs,
const gchar *label);
void prefs_account_save_config (PrefsAccount *ac_prefs);
void prefs_account_save_config_all (GList *account_list);
+
void prefs_account_free (PrefsAccount *ac_prefs);
+
PrefsAccount *prefs_account_open (PrefsAccount *ac_prefs);
#endif /* __PREFS_ACCOUNT_H__ */