Changeset 2455

Show
Ignore:
Timestamp:
07/11/07 14:24:09
Author:
pvanhoof
Message:

Added some debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c

    r2367 r2455  
    331331         
    332332#ifdef G_OS_WIN32  
    333         if (g_access(dir, F_OK) == -1) { 
     333        if (dir && g_access(dir, F_OK) == -1) { 
    334334#else 
    335         if (access (dir, F_OK) == -1) { 
     335        if (dir && access (dir, F_OK) == -1) { 
    336336#endif 
    337                 if (create
     337                if (create && dir
    338338                        g_mkdir_with_parents (dir, 0700); 
    339339        } else if (cdc->priv->expire_inc == hash 
  • trunk/libtinymail-camel/tny-camel-folder.c

    r2450 r2455  
    34153415        g_mutex_lock (priv->reason_lock); 
    34163416        priv->reason_to_live--; 
     3417 
     3418printf ("UNR (%s) : %d\n", priv->folder_name, priv->reason_to_live); 
    34173419 
    34183420        if (priv->reason_to_live == 0)  
     
    45024504        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 
    45034505 
     4506#ifdef DEBUG 
     4507        g_print ("Finalizing TnyCamelFolder: %s\n", priv->folder_name?priv->folder_name:"(cleared)"); 
     4508        if (priv->reason_to_live != 0) 
     4509                g_print ("Finalizing TnyCamelFolder, yet TnyHeader instances " 
     4510                "are still alive: %d\n", priv->reason_to_live); 
     4511#endif 
    45044512 
    45054513        /* Commented because they should not be really needed but some 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.c

    r2400 r2455  
    815815} 
    816816 
     817#ifdef DEBUG 
     818static void forea (gpointer u, gpointer o) 
     819{ 
     820        g_print ("TnyGtkHeaderListModel::finalize unrefs hdr to: %d\n", ((GObject *)u)->ref_count); 
     821        if (((GObject *)u)->ref_count != 1) 
     822                printf ("ps. Usually, this should be 1 here\n"); 
     823        g_object_unref (u); 
     824} 
     825#endif 
     826 
    817827 
    818828static void 
     
    823833 
    824834        g_static_rec_mutex_lock (priv->iterator_lock); 
     835 
     836#ifdef DEBUG 
     837        g_print ("tny_gtk_header_list_model_finalize\n"); 
     838#endif 
    825839 
    826840        if (priv->add_timeout > 0) { 
     
    831845        remove_del_timeouts (self); 
    832846 
     847#ifdef DEBUG 
     848        g_ptr_array_foreach (priv->items, (GFunc) forea, NULL); 
     849#else 
    833850        g_ptr_array_foreach (priv->items, (GFunc) g_object_unref, NULL); 
     851#endif 
     852 
    834853        if (priv->folder) 
    835854                g_object_unref (priv->folder);