[seahorse/gnome-3-2] pgp: Don't load signatures unless showing key properties
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/gnome-3-2] pgp: Don't load signatures unless showing key properties
- Date: Mon, 14 Nov 2011 08:31:42 +0000 (UTC)
commit d5eb5431ef4d9f47aeaed04444ec611b5383c871
Author: Stef Walter <stefw collabora co uk>
Date: Mon Nov 14 09:31:14 2011 +0100
pgp: Don't load signatures unless showing key properties
https://bugzilla.gnome.org/show_bug.cgi?id=662088
pgp/seahorse-gpgme-key.c | 8 +++++++-
pgp/seahorse-gpgme-key.h | 2 ++
pgp/seahorse-pgp-key-properties.c | 1 +
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-key.c b/pgp/seahorse-gpgme-key.c
index e5d7697..707e964 100644
--- a/pgp/seahorse-gpgme-key.c
+++ b/pgp/seahorse-gpgme-key.c
@@ -153,7 +153,7 @@ require_key_private (SeahorseGpgmeKey *self)
static gboolean
require_key_uids (SeahorseGpgmeKey *self)
{
- return require_key_public (self, GPGME_KEYLIST_MODE_LOCAL | GPGME_KEYLIST_MODE_SIGS);
+ return require_key_public (self, GPGME_KEYLIST_MODE_LOCAL);
}
static gboolean
@@ -363,6 +363,12 @@ seahorse_gpgme_key_realize (SeahorseGpgmeKey *self)
}
void
+seahorse_gpgme_key_ensure_signatures (SeahorseGpgmeKey *self)
+{
+ require_key_public (self, GPGME_KEYLIST_MODE_LOCAL | GPGME_KEYLIST_MODE_SIGS);
+}
+
+void
seahorse_gpgme_key_refresh (SeahorseGpgmeKey *self)
{
if (self->pv->pubkey)
diff --git a/pgp/seahorse-gpgme-key.h b/pgp/seahorse-gpgme-key.h
index 2931b41..634346b 100644
--- a/pgp/seahorse-gpgme-key.h
+++ b/pgp/seahorse-gpgme-key.h
@@ -57,6 +57,8 @@ void seahorse_gpgme_key_refresh (SeahorseGpgmeKey *sel
void seahorse_gpgme_key_realize (SeahorseGpgmeKey *self);
+void seahorse_gpgme_key_ensure_signatures (SeahorseGpgmeKey *self);
+
GType seahorse_gpgme_key_get_type (void);
gpgme_key_t seahorse_gpgme_key_get_public (SeahorseGpgmeKey *self);
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 3c85591..56487dc 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -2007,6 +2007,7 @@ seahorse_pgp_key_properties_show (SeahorsePgpKey *pkey, GtkWindow *parent)
if (SEAHORSE_IS_GPGME_KEY (pkey)) {
/* This causes the key source to get any specific info about the key */
seahorse_gpgme_key_refresh (SEAHORSE_GPGME_KEY (pkey));
+ seahorse_gpgme_key_ensure_signatures (SEAHORSE_GPGME_KEY (pkey));
sobj = seahorse_context_get_object (SCTX_APP(), sksrc, seahorse_object_get_id (sobj));
g_return_if_fail (sobj != NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]