sync with 0.8.3cvs6
authorPaul Mangan <paul@claws-mail.org>
Thu, 26 Sep 2002 07:32:06 +0000 (07:32 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 26 Sep 2002 07:32:06 +0000 (07:32 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/account.c
src/prefs_account.c
src/prefs_account.h

index 635b1f5..5196b27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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:
index e09075f..c42e31e 100644 (file)
@@ -1,3 +1,8 @@
+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
index 3201f52..a34a3ea 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-25
+
+       * src/account.c: account_read_config_all(): ¥¢¥«¥¦¥ó¥È¾ðÊó¤òÀßÄê
+         ¥Õ¥¡¥¤¥ë¤Ç½é´ü²½¤¹¤ëÁ°¤Ë¥Ç¥Õ¥©¥ë¥È¤ËÀßÄꤹ¤ë¤è¤¦¤Ë¤·¤¿¡£
+       * src/prefs_account.[ch]: prefs_account_new(): ¿·µ¬¡£¥Ç¥Õ¥©¥ë¥È¤Î
+         ÀßÄê¤Ç½é´ü²½¤µ¤ì¤¿¥¢¥«¥¦¥ó¥È¾ðÊó¹½Â¤ÂΤò¿·µ¬¤ËºîÀ®¤·¤ÆÊÖ¤¹¡£
+
 2002-09-24
 
        * src/addr_compl.c:
index 62a23d7..4b6fcbe 100644 (file)
@@ -10,7 +10,7 @@ MINOR_VERSION=8
 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
index cc145a6..ab54d7c 100644 (file)
@@ -141,7 +141,7 @@ void account_read_config_all(void)
        /* 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)
index f0ca13d..9f81c77 100644 (file)
@@ -502,6 +502,8 @@ static PrefParam param[] = {
        {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);
@@ -533,6 +535,19 @@ static void prefs_account_ok                       (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;
@@ -636,11 +651,7 @@ PrefsAccount *prefs_account_open(PrefsAccount *ac_prefs)
        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;
        }
 
index b027b9b..4eb03c2 100644 (file)
@@ -194,11 +194,15 @@ struct _PrefsAccount
        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__ */