[gcr] gcr: Function to emit notify on GcrCertificate props for data change
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gcr: Function to emit notify on GcrCertificate props for data change
- Date: Thu, 13 Oct 2011 07:50:55 +0000 (UTC)
commit 7075ac649738fb977671022388833f99396d1261
Author: Stef Walter <stefw collabora co uk>
Date: Thu Oct 13 09:50:24 2011 +0200
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(+), 0 deletions(-)
---
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)
* </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
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]