commit 321a090c6722e644a0d03a46c97bc78305e89786
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri May 4 10:45:27 2012 +0200

    Tune idle callback priorities.

diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index fc0957b..95e1bd9 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -2845,7 +2845,7 @@ camel_folder_rename (CamelFolder *folder,
  * @changes: change information for @folder
  *
  * Emits the #CamelFolder::changed signal from an idle source on the
- * main loop.  The idle source's priority is #G_PRIORITY_LOW.
+ * main loop.  The idle source's priority is #G_PRIORITY_DEFAULT.
  *
  * Since: 2.32
  **/
@@ -2885,7 +2885,7 @@ camel_folder_changed (CamelFolder *folder,
 		data->folder = g_object_ref (folder);
 
 		g_idle_add_full (
-			G_PRIORITY_LOW,
+			G_PRIORITY_DEFAULT,
 			(GSourceFunc) folder_emit_changed_cb,
 			data, (GDestroyNotify) signal_data_free);
 	}
diff --git a/camel/camel-operation.c b/camel/camel-operation.c
index 1380e9e..3f4a001 100644
--- a/camel/camel-operation.c
+++ b/camel/camel-operation.c
@@ -384,7 +384,7 @@ camel_operation_progress (GCancellable *cancellable,
 		/* Rate limit progress updates. */
 		if (node->source_id == 0)
 			node->source_id = g_timeout_add_full (
-				G_PRIORITY_DEFAULT, PROGRESS_DELAY,
+				G_PRIORITY_DEFAULT_IDLE, PROGRESS_DELAY,
 				(GSourceFunc) operation_emit_status_cb,
 				status_node_ref (node),
 				(GDestroyNotify) status_node_unref);
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 6f92de0..f76201f 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -1236,7 +1236,7 @@ camel_store_error_quark (void)
  * @folder_info: information about the created folder
  *
  * Emits the #CamelStore::folder-created signal from an idle source on
- * the main loop.  The idle source's priority is #G_PRIORITY_DEFAULT_IDLE.
+ * the main loop.  The idle source's priority is #G_PRIORITY_DEFAULT.
  *
  * This function is only intended for Camel providers.
  *
@@ -1256,7 +1256,7 @@ camel_store_folder_created (CamelStore *store,
 	data->folder_info = camel_folder_info_clone (folder_info);
 
 	g_idle_add_full (
-		G_PRIORITY_DEFAULT_IDLE,
+		G_PRIORITY_DEFAULT,
 		(GSourceFunc) store_emit_folder_created_cb,
 		data, (GDestroyNotify) signal_data_free);
 }
@@ -1298,7 +1298,7 @@ camel_store_folder_deleted (CamelStore *store,
  * @folder: the #CamelFolder that was opened
  *
  * Emits the #CamelStore::folder-opened signal from an idle source on
- * the main loop.  The idle source's priority is #G_PRIORITY_DEFAULT_IDLE.
+ * the main loop.  The idle source's priority is #G_PRIORITY_DEFAULT.
  *
  * This function is only intended for Camel providers.
  *
@@ -1318,7 +1318,7 @@ camel_store_folder_opened (CamelStore *store,
 	data->folder = g_object_ref (folder);
 
 	g_idle_add_full (
-		G_PRIORITY_DEFAULT_IDLE,
+		G_PRIORITY_DEFAULT,
 		(GSourceFunc) store_emit_folder_opened_cb,
 		data, (GDestroyNotify) signal_data_free);
 }
