/* 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 ();
}
/**
* 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.
*
/**
* 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.
*
* 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);
} SetFolderHelper;
static void
-folder_refreshed_cb (const GObject *obj,
+folder_refreshed_cb (ModestMailOperation *mail_op,
TnyFolder *folder,
gpointer user_data)
{
/* 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