Changeset 3649

Show
Ignore:
Timestamp:
05/09/08 12:28:01
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
  • releases/modest/diablo-pe1/ChangeLog

    r3644 r3649  
     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 
  • releases/modest/diablo-pe1/libtinymail-camel/tny-camel-folder.c

    r3616 r3649  
    2727 
    2828#include <string.h> 
     29#define DEBUG_EXTRA 
    2930 
    3031 
     
    15561557 
    15571558        camel_folder_sync (priv->folder, expunge, &ex); 
     1559        _tny_camel_folder_reason (priv); 
    15581560        _tny_camel_folder_check_unread_count (TNY_CAMEL_FOLDER (self)); 
    15591561        reset_local_size (priv); 
     1562        _tny_camel_folder_unreason (priv); 
    15601563 
    15611564        g_static_rec_mutex_unlock (priv->folder_lock); 
     
    21572160{ 
    21582161        GetHeadersInfo *info = thr_user_data; 
     2162        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->self); 
    21592163 
    21602164        /* thread reference */ 
     2165        _tny_camel_folder_unreason (priv); 
    21612166        g_object_unref (info->self); 
    21622167        g_object_unref (info->headers); 
     
    22042209{ 
    22052210        GetHeadersInfo *info = thr_user_data; 
     2211        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (info->self); 
    22062212 
    22072213        if (info->err) 
    22082214                g_error_free (info->err); 
     2215        _tny_camel_folder_unreason (priv); 
    22092216        g_object_unref (info->self); 
    22102217        g_object_unref (info->headers); 
     
    22582265        g_object_ref (info->headers); 
    22592266 
     2267        _tny_camel_folder_reason (priv); 
    22602268        _tny_camel_queue_cancel_remove_items (TNY_FOLDER_PRIV_GET_QUEUE (priv),  
    22612269                TNY_CAMEL_QUEUE_GET_HEADERS_ITEM|TNY_CAMEL_QUEUE_SYNC_ITEM|