* Changed the signature of the refresh folder callback. This will allow us to know...
authorSergio Villar Senin <svillar@igalia.com>
Thu, 5 Jul 2007 11:16:27 +0000 (11:16 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 5 Jul 2007 11:16:27 +0000 (11:16 +0000)
pmo-trunk-r2585

src/modest-mail-operation.c
src/modest-mail-operation.h
src/modest-ui-actions.c
src/widgets/modest-header-view.c

index 316274e..1674414 100644 (file)
@@ -2179,7 +2179,7 @@ on_refresh_folder (TnyFolder   *folder,
        /* Call user defined callback, if it exists */
        if (helper->user_callback) {
                gdk_threads_enter ();
-               helper->user_callback (priv->source, folder, helper->user_data);
+               helper->user_callback (self, folder, helper->user_data);
                gdk_threads_leave ();
        }
 
index d389dd6..2894a09 100644 (file)
@@ -88,7 +88,8 @@ typedef void (*ErrorCheckingUserCallback) (ModestMailOperation *mail_op, gpointe
 /**
  * GetMsgAsyncUserCallback:
  *
- * @obj: a #GObject generic object which has created current mail operation.
+ * @mail_op: the current #ModestMailOperation.
+ * @header: a #TnyHeader summary item.
  * @msg: a #TnyMsg message retrieved by async operation.
  * @user_data: generic data passed to user defined function.
  *
@@ -117,7 +118,7 @@ typedef void (*XferMsgsAsynUserCallback) (const GObject *obj, gpointer user_data
 /**
  * RefreshAsyncUserCallback:
  *
- * @obj: a #GObject generic object which has created current mail operation.
+ * @mail_op: the current #ModestMailOperation.
  * @folder: a #TnyFolder which has been refreshed .
  * @user_data: generic data passed to user defined function.
  *
@@ -125,7 +126,7 @@ typedef void (*XferMsgsAsynUserCallback) (const GObject *obj, gpointer user_data
  * used as tinymail operation callback. The private function fills private 
  * fields of mail operation and calls user defined callback if it exists.
  */
-typedef void (*RefreshAsyncUserCallback) (const GObject *obj, 
+typedef void (*RefreshAsyncUserCallback) (ModestMailOperation *mail_op, 
                                          TnyFolder *folder, 
                                          gpointer user_data);
 
index 7799461..ea02866 100644 (file)
@@ -1484,7 +1484,7 @@ set_active_account_from_tny_account (TnyAccount *account,
 
 
 static void
-folder_refreshed_cb (const GObject *obj, 
+folder_refreshed_cb (ModestMailOperation *mail_op, 
                     TnyFolder *folder, 
                     gpointer user_data)
 {
index ad8371a..970e98e 100644 (file)
@@ -990,7 +990,7 @@ typedef struct {
 } SetFolderHelper;
 
 static void
-folder_refreshed_cb (const GObject *obj, 
+folder_refreshed_cb (ModestMailOperation *mail_op,
                     TnyFolder *folder, 
                     gpointer user_data)
 {
@@ -1003,7 +1003,7 @@ folder_refreshed_cb (const GObject *obj,
 
        /* User callback */
        if (info->cb)
-               info->cb (obj, folder, info->user_data);
+               info->cb (mail_op, folder, info->user_data);
 
        /* Start the folder count changes observer. We do not need it
           before the refresh. Note that the monitor could still be