Changeset 1754
- Timestamp:
- 03/28/07 22:47:34
- Files:
-
- trunk/libtinymail-olpc/tny-olpc-account-store.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-olpc/tny-olpc-account-store.c
r1713 r1754 171 171 172 172 173 static void 174 kill_stored_accounts (TnyOlpcAccountStorePriv *priv) 175 { 176 if (priv->accounts) 177 { 178 g_list_foreach (priv->accounts, (GFunc) g_object_unref, NULL); 179 g_list_free (priv->accounts); 180 priv->accounts = NULL; 181 } 182 183 return; 184 } 173 185 174 186 static void … … 268 280 tny_account_set_hostname (TNY_ACCOUNT (account), hostname); 269 281 270 port = g_key_file_get_ value(keyfile, "tinymail", "port", &err);271 if (err != G_KEY_FILE_ERROR_KEY_NOT_FOUND)282 port = g_key_file_get_integer (keyfile, "tinymail", "port", &err); 283 if (err == NULL) 272 284 tny_account_set_port (TNY_ACCOUNT (account), port); 273 285 … … 360 372 361 373 if (!priv->accounts) 362 load_accounts ( priv);374 load_accounts (self); 363 375 364 376 if (priv->accounts) … … 461 473 return; 462 474 } 475 463 476 464 477
