Changeset 3651

Show
Ignore:
Timestamp:
05/09/08 13:06:14
Author:
jdapena
Message:

* libtinymail-camel/tny-camel-folder.c:

Add some reasons/unreasons in get_headers_operation, to avoid
getting a 0 account when we are replacing the headers in the
gtk list store model. This should avoid some very hidden
crashes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3646 r3651  
     12008-05-09  Jose Dapena Paz  <jdapena@igalia.com> 
     2 
     3        * libtinymail-camel/tny-camel-folder.c: 
     4          Add some reasons/unreasons in get_headers_operation, to avoid 
     5          getting a 0 account when we are replacing the headers in the 
     6          gtk list store model. This should avoid some very hidden 
     7          crashes. 
     8 
    192008-05-06  Jose Dapena Paz  <jdapena@igalia.com> 
    210 
  • trunk/libtinymail-camel/tny-camel-folder.c

    r3642 r3651  
    21582158{ 
    21592159        GetHeadersInfo *info = thr_user_data; 
     2160        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->self); 
    21602161 
    21612162        /* thread reference */ 
     2163        _tny_camel_folder_unreason (priv); 
    21622164        g_object_unref (info->self); 
    21632165        g_object_unref (info->headers); 
     
    22052207{ 
    22062208        GetHeadersInfo *info = thr_user_data; 
     2209        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->self); 
    22072210 
    22082211        if (info->err) 
    22092212                g_error_free (info->err); 
     2213        _tny_camel_folder_unreason (priv); 
    22102214        g_object_unref (info->self); 
    22112215        g_object_unref (info->headers); 
     
    22592263        g_object_ref (info->headers); 
    22602264 
     2265        _tny_camel_folder_reason (priv); 
    22612266        _tny_camel_queue_cancel_remove_items (TNY_FOLDER_PRIV_GET_QUEUE (priv),  
    22622267                TNY_CAMEL_QUEUE_GET_HEADERS_ITEM|TNY_CAMEL_QUEUE_SYNC_ITEM|