From 7075ac649738fb977671022388833f99396d1261 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 13 Oct 2011 09:50:24 +0200 Subject: [PATCH] gcr: Function to emit notify on GcrCertificate props for data change --- gcr/gcr-certificate.c | 15 +++++++++++++++ gcr/gcr-certificate.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/gcr/gcr-certificate.c b/gcr/gcr-certificate.c index 945d198..5dd16ab 100644 --- a/gcr/gcr-certificate.c +++ b/gcr/gcr-certificate.c @@ -960,6 +960,21 @@ gcr_certificate_get_icon (GcrCertificate *self) * */ +void +gcr_certificate_mixin_emit_notify (GcrCertificate *self) +{ + GObject *obj; + + g_return_if_fail (GCR_IS_CERTIFICATE (self)); + + obj = G_OBJECT (self); + g_object_notify (obj, "label"); + g_object_notify (obj, "markup"); + g_object_notify (obj, "subject"); + g_object_notify (obj, "issuer"); + g_object_notify (obj, "expiry"); +} + /** * gcr_certificate_mixin_comparable_init: (skip) * @iface: The interface diff --git a/gcr/gcr-certificate.h b/gcr/gcr-certificate.h index c97316f..62ae08a 100644 --- a/gcr/gcr-certificate.h +++ b/gcr/gcr-certificate.h @@ -116,6 +116,8 @@ GIcon* gcr_certificate_get_icon (GcrCertificate *self #define GCR_CERTIFICATE_MIXIN_IMPLEMENT_COMPARABLE() \ G_IMPLEMENT_INTERFACE (GCR_TYPE_COMPARABLE, gcr_certificate_mixin_comparable_init) +void gcr_certificate_mixin_emit_notify (GcrCertificate *self); + void gcr_certificate_mixin_comparable_init (GcrComparableIface *iface); void gcr_certificate_mixin_class_init (GObjectClass *object_class); -- 2.7.4