[seahorse] pkcs11: Set GcrKeyRenderer object property to private key
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] pkcs11: Set GcrKeyRenderer object property to private key
- Date: Fri, 9 Dec 2011 13:35:00 +0000 (UTC)
commit dbc37fe2e2869127cb973c365417928fbfd3569d
Author: Stef Walter <stefw collabora co uk>
Date: Fri Dec 9 14:27:04 2011 +0100
pkcs11: Set GcrKeyRenderer object property to private key
* Allows the renderer to retrieve key related attributes from
the pkcs11 store.
pkcs11/seahorse-pkcs11-properties.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/seahorse-pkcs11-properties.c b/pkcs11/seahorse-pkcs11-properties.c
index e45508a..e091a29 100644
--- a/pkcs11/seahorse-pkcs11-properties.c
+++ b/pkcs11/seahorse-pkcs11-properties.c
@@ -116,6 +116,9 @@ add_renderer_for_object (SeahorsePkcs11Properties *self,
renderer, "attributes",
G_BINDING_DEFAULT);
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS (renderer), "object"))
+ g_object_set (renderer, "object", object, NULL);
+
gcr_viewer_add_renderer (self->viewer, renderer);
g_object_unref (renderer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]