gcr: Function to emit notify on GcrCertificate props for data change
authorStef Walter <stefw@collabora.co.uk>
Thu, 13 Oct 2011 07:50:24 +0000 (09:50 +0200)
committerStef Walter <stefw@collabora.co.uk>
Thu, 13 Oct 2011 07:50:24 +0000 (09:50 +0200)
gcr/gcr-certificate.c
gcr/gcr-certificate.h

index 945d198..5dd16ab 100644 (file)
@@ -960,6 +960,21 @@ gcr_certificate_get_icon (GcrCertificate *self)
  * </programlisting></informalexample>
  */
 
+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
index c97316f..62ae08a 100644 (file)
@@ -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);