[seahorse/gnome-3-2] With gpg2 key loading takes longer, so adjust behavior



commit 0cb0d5abe4af9160bafe753296ff1dca46e54866
Author: Stef Walter <stefw collabora co uk>
Date:   Thu Oct 20 10:17:36 2011 +0200

    With gpg2 key loading takes longer, so adjust behavior
    
     * Load in a low priority idle handler, and load smaller batches
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662088

 pgp/seahorse-gpgme-source.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-source.c b/pgp/seahorse-gpgme-source.c
index 5ec9b76..a84ac62 100644
--- a/pgp/seahorse-gpgme-source.c
+++ b/pgp/seahorse-gpgme-source.c
@@ -46,10 +46,8 @@
 #define DEBUG_FLAG SEAHORSE_DEBUG_OPERATION
 #include "seahorse-debug.h"
 
-/* TODO: Verify properly that all keys we deal with are PGP keys */
-
 /* Amount of keys to load in a batch */
-#define DEFAULT_LOAD_BATCH 200
+#define DEFAULT_LOAD_BATCH 50
 
 enum {
     LOAD_FULL = 0x01,
@@ -403,7 +401,7 @@ seahorse_gpgme_source_list_async (SeahorseGpgmeSource *self,
 		                                                G_CALLBACK (on_source_list_cancelled),
 		                                                res, NULL);
 
-	g_idle_add_full (G_PRIORITY_DEFAULT, on_idle_list_batch_of_keys,
+	g_idle_add_full (G_PRIORITY_LOW, on_idle_list_batch_of_keys,
 	                 g_object_ref (res), g_object_unref);
 
 	g_object_unref (res);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]