Changeset 584

Show
Ignore:
Timestamp:
07/26/06 17:02:03
Author:
pvanhoof
Message:

Fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-olpc/tny-account-store.c

    r583 r584  
    5353struct _TnyAccountStorePriv 
    5454{ 
     55        gchar *cache_dir; 
    5556        TnySessionCamel *session; 
    5657        TnyDeviceIface *device; 
     
    172173tny_account_store_get_cache_dir (TnyAccountStoreIface *self) 
    173174{ 
    174         return g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir(), ".tinymail"); 
     175        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
     176 
     177        if (!priv->cache_dir) 
     178                priv->cache_dir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir(), ".tinymail", NULL); 
     179 
     180        return priv->cache_dir; 
    175181} 
    176182 
     
    378384tny_account_store_instance_init (GTypeInstance *instance, gpointer g_class) 
    379385{ 
    380         TnyAccountStore *self = (TnyAccountStore *)instance; 
    381         TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (self); 
    382  
    383  
    384386        return; 
    385387} 
     
    389391tny_account_store_finalize (GObject *object) 
    390392{        
     393        TnyAccountStorePriv *priv = TNY_ACCOUNT_STORE_GET_PRIVATE (object); 
     394 
     395        if (priv->cache_dir) 
     396                g_free (priv->cache_dir); 
     397 
    391398        (*parent_class->finalize) (object); 
    392399