Changeset 3574
- Timestamp:
- 04/14/08 15:31:07
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-folder-priv.h (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3573 r3574 4 4 * Handling uncaching the password during account finalization 5 5 * mlock-ing the password memory of accounts 6 * Uncaching of the folder-list in case of tree-changing operations 6 7 7 8 2008-04-11 Philip Van Hoof <pvanhoof@gnome.org> trunk/libtinymail-camel/tny-camel-folder-priv.h
r3482 r3574 54 54 CamelException load_ex; 55 55 GList *obs, *sobs; 56 gboolean cant_reuse_iter; 56 57 }; 57 58 trunk/libtinymail-camel/tny-camel-folder.c
r3553 r3574 3214 3214 if (TNY_IS_CAMEL_FOLDER (into)) { 3215 3215 TnyCamelFolderPriv *tpriv = TNY_CAMEL_FOLDER_GET_PRIVATE (into); 3216 tpriv->cant_reuse_iter = TRUE; 3216 3217 to = g_strdup_printf ("%s/%s", tpriv->folder_name, new_name); 3217 } else 3218 } else { 3219 TnyCamelStoreAccountPriv *sapriv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (into); 3220 sapriv->cant_reuse_iter = TRUE; 3218 3221 to = g_strdup (new_name); 3222 } 3219 3223 3220 3224 tny_debug ("tny_folder_copy: rename %s to %s\n", from, to); … … 5034 5038 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (folder); 5035 5039 5040 priv->cant_reuse_iter = FALSE; 5036 5041 priv->iter = iter; 5037 5042 … … 5055 5060 tny_camel_folder_get_folders_default (TnyFolderStore *self, TnyList *list, TnyFolderStoreQuery *query, GError **err) 5056 5061 { 5062 gboolean cant_reuse_iter = TRUE; 5057 5063 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 5058 5064 CamelFolderInfo *iter; 5065 TnyAccount *account = NULL; 5059 5066 5060 5067 if (!_tny_session_check_operation (TNY_FOLDER_PRIV_GET_SESSION(priv), … … 5063 5070 return; 5064 5071 5065 if (!priv->iter && priv->iter_parented) 5072 account = tny_folder_get_account (TNY_FOLDER (self)); 5073 5074 if (account) { 5075 TnyCamelStoreAccountPriv *aspriv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (account); 5076 if (aspriv) 5077 cant_reuse_iter = aspriv->cant_reuse_iter; 5078 g_object_unref (account); 5079 } 5080 5081 if (!cant_reuse_iter) 5082 cant_reuse_iter = cant_reuse_iter; 5083 5084 if ((!priv->iter && priv->iter_parented) || cant_reuse_iter) 5066 5085 { 5067 5086 CamelStore *store = priv->store; … … 5071 5090 5072 5091 priv->iter = camel_store_get_folder_info (store, priv->folder_name, 0, &ex); 5092 5093 priv->cant_reuse_iter = FALSE; 5073 5094 5074 5095 if (camel_exception_is_set (&ex)) … … 5993 6014 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 5994 6015 6016 priv->cant_reuse_iter = TRUE; 5995 6017 priv->unread_read = FALSE; 5996 6018 priv->account = NULL;
