Changeset 3100
- Timestamp:
- 12/11/07 19:58:31
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (5 diffs)
- trunk/libtinymail-camel/tny-camel-store-account.c (modified) (2 diffs)
- trunk/libtinymail/tny-merge-folder.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3099 r3100 1 2007-12-11 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * Repeated the bugfix of Sergio to the other locations where the same 4 technique was wrongfully used. 5 1 6 2007-12-11 Milko Krachounov <milko@3mhz.net> 2 7 trunk/libtinymail-camel/tny-camel-folder.c
r3097 r3100 124 124 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 125 125 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (priv->account); 126 GList *list ;126 GList *list, *list_iter; 127 127 128 128 g_static_rec_mutex_lock (priv->obs_lock); … … 132 132 } 133 133 list = g_list_copy (priv->sobs); 134 list_iter = list; 134 135 g_static_rec_mutex_unlock (priv->obs_lock); 135 136 136 while (list )137 { 138 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list ->data);137 while (list_iter) 138 { 139 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list_iter->data); 139 140 tny_lockable_lock (apriv->session->priv->ui_lock); 140 141 tny_folder_store_observer_update (observer, change); 141 142 tny_lockable_unlock (apriv->session->priv->ui_lock); 142 list = g_list_next (list);143 list_iter = g_list_next (list_iter); 143 144 } 144 145 … … 196 197 list_iter = g_list_next (list_iter); 197 198 } 199 198 200 g_list_free (list); 199 201 … … 230 232 TnyCamelStoreAccountPriv *priv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (self); 231 233 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (self); 232 GList *list = NULL ;234 GList *list = NULL, *list_iter; 233 235 234 236 g_static_rec_mutex_lock (priv->obs_lock); … … 238 240 } 239 241 list = g_list_copy (priv->sobs); 242 list_iter = list; 240 243 g_static_rec_mutex_unlock (priv->obs_lock); 241 244 242 while (list )243 { 244 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list ->data);245 while (list_iter) 246 { 247 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list_iter->data); 245 248 tny_lockable_lock (apriv->session->priv->ui_lock); 246 249 tny_folder_store_observer_update (observer, change); 247 250 tny_lockable_unlock (apriv->session->priv->ui_lock); 248 list = g_list_next (list); 249 } 251 list_iter = g_list_next (list_iter); 252 } 253 250 254 g_list_free (list); 251 255 trunk/libtinymail-camel/tny-camel-store-account.c
r3098 r3100 88 88 { 89 89 TnyCamelAccountPriv *apriv = NULL; 90 GList *list = NULL ;90 GList *list = NULL, *list_iter; 91 91 92 92 GStaticRecMutex *obs_lock; … … 115 115 } 116 116 list = g_list_copy (sobs); 117 list_iter = list; 117 118 g_static_rec_mutex_unlock (obs_lock); 118 119 119 while (list )120 { 121 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list ->data);120 while (list_iter) 121 { 122 TnyFolderStoreObserver *observer = TNY_FOLDER_STORE_OBSERVER (list_iter->data); 122 123 tny_lockable_lock (apriv->session->priv->ui_lock); 123 124 tny_folder_store_observer_update (observer, change); 124 125 tny_lockable_unlock (apriv->session->priv->ui_lock); 125 list = g_list_next (list); 126 } 126 list_iter = g_list_next (list_iter); 127 } 128 127 129 g_list_free (list); 128 130 trunk/libtinymail/tny-merge-folder.c
r3042 r3100 53 53 TnyMergeFolderPriv *priv = TNY_MERGE_FOLDER_GET_PRIVATE (self); 54 54 TnyIterator *iter; 55 GList *list ;55 GList *list, *list_iter; 56 56 57 57 g_static_rec_mutex_lock (priv->lock); … … 61 61 } 62 62 list = g_list_copy (priv->obs); 63 g_static_rec_mutex_unlock (priv->lock); 64 65 66 while (list) 67 { 68 TnyFolderObserver *observer = TNY_FOLDER_OBSERVER (list->data); 63 list_iter = list; 64 g_static_rec_mutex_unlock (priv->lock); 65 66 67 while (list_iter) 68 { 69 TnyFolderObserver *observer = TNY_FOLDER_OBSERVER (list_iter->data); 69 70 70 71 /* We don't need to hold the ui-lock here, because this is called … … 73 74 74 75 tny_folder_observer_update (observer, change); 75 list = g_list_next (list);76 list_iter = g_list_next (list_iter); 76 77 } 77 78
