Changeset 1397

Show
Ignore:
Timestamp:
01/12/07 13:15:09
Author:
pvanhoof
Message:

Refreshing POP folders bugfix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r1396 r1397  
     12007-01-12  Philip Van Hoof <pvanhoof@gnome.org> 
     2 
     3        * Refreshing POP folders, bugfix 
     4 
    152007-01-11  Philip Van Hoof <pvanhoof@gnome.org> 
    26 
  • trunk/libtinymail-camel/tny-camel-pop-folder.c

    r1384 r1397  
    459459} 
    460460 
     461static void 
     462tny_camel_pop_folder_refresh_async (TnyFolder *self, TnyRefreshFolderCallback callback, TnyRefreshFolderStatusCallback status_callback, gpointer user_data) 
     463{ 
     464        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 
     465        TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (priv->account); 
     466        CamelException ex = CAMEL_EXCEPTION_INITIALISER; 
     467 
     468        camel_service_disconnect (apriv->service, FALSE, &ex); 
     469        camel_service_connect (apriv->service, &ex); 
     470 
     471        TNY_CAMEL_FOLDER_CLASS (parent_class)->refresh_async_func (self, callback, status_callback, user_data); 
     472} 
     473 
     474static void  
     475tny_camel_pop_folder_refresh (TnyFolder *self, GError **err) 
     476{ 
     477        TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 
     478        TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (priv->account); 
     479        CamelException ex = CAMEL_EXCEPTION_INITIALISER; 
     480 
     481        camel_service_disconnect (apriv->service, FALSE, &ex); 
     482        camel_service_connect (apriv->service, &ex); 
     483 
     484        TNY_CAMEL_FOLDER_CLASS (parent_class)->refresh_func (self, err); 
     485} 
     486 
    461487static void  
    462488tny_camel_pop_folder_class_init (TnyCamelPOPFolderClass *class) 
     
    467493        object_class = (GObjectClass*) class; 
    468494 
    469         /* 
    470495        TNY_CAMEL_FOLDER_CLASS (class)->refresh_async_func = tny_camel_pop_folder_refresh_async; 
    471496        TNY_CAMEL_FOLDER_CLASS (class)->refresh_func = tny_camel_pop_folder_refresh;  
    472         */ 
    473497 
    474498        object_class->finalize = tny_camel_pop_folder_finalize;