[libcryptui] Set the source on UID objects



commit 1a7c9d7e75a3be0a3fbf3398575d6296528b079e
Author: Stef Walter <stefw gnome org>
Date:   Thu May 23 09:29:29 2013 +0200

    Set the source on UID objects
    
    This allows them to be used for selecting encryption recipients

 daemon/seahorse-gpgme-key.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/seahorse-gpgme-key.c b/daemon/seahorse-gpgme-key.c
index cb09749..001b89b 100644
--- a/daemon/seahorse-gpgme-key.c
+++ b/daemon/seahorse-gpgme-key.c
@@ -166,6 +166,7 @@ realize_uids (SeahorseGpgmeKey *self)
        SeahorseGpgmeUid *uid;
        GList *results = NULL;
        gboolean changed = FALSE;
+       SeahorseSource *source;
        GList *uids;
 
        uids = self->pv->uids;
@@ -189,10 +190,12 @@ realize_uids (SeahorseGpgmeKey *self)
        }
 
        /* Add new UIDs */
+       source = seahorse_object_get_source (SEAHORSE_OBJECT (self));
        while (guid != NULL) {
                uid = seahorse_gpgme_uid_new (self->pv->pubkey, guid);
                changed = TRUE;
                results = seahorse_object_list_append (results, uid);
+               g_object_set (uid, "source", source, NULL);
                g_object_unref (uid);
                guid = guid->next;
        }


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