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 635b1f5f79b986cd91812dd86dd98cc723ee29fa..5196b272db4523007ea8f138883a9c1117995b79 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 e09075f9ebc72a620674aa8f166138c1bad67148..c42e31e57de3c7cdb613ad8a76e3714cc1b61eee 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 3201f523ec5200e773b251c3ea73809696fbb013..a34a3ea3983806176acfe28ba1a3da1ca0c4dc0b 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 62a23d723d843fb9e556043fa76f8acb26faf3cd..4b6fcbe351fcc4a63256b9a1c005ec86c4cf71cb 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 cc145a6412603c8bea6b010947e13968a734dea7..ab54d7c54bfcb33b04957fb8023efbc17b35d822 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 f0ca13dee89f7149c5174510ac5449b4e25273d8..9f81c77caa8ac3cfec87a23483fdb684c95baf0f 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 b027b9b8c2309a94ef1dc6bea6e4af1e429839bb..4eb03c2b0f052590e38ff06eab61bb50da226648 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__ */