[next] telepathy-glib: Change the range of TpTLSCertificate:state to [0, 2**32)

Xavier Claessens xclaesse at kemper.freedesktop.org
Wed May 9 13:10:47 PDT 2012


Module: telepathy-glib
Branch: next
Commit: deae4edfcad3cca0d4b70b7eff5abe40d3d23665
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=deae4edfcad3cca0d4b70b7eff5abe40d3d23665

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Wed Dec 15 11:52:27 2010 +0000

Change the range of TpTLSCertificate:state to [0, 2**32)

It comes from D-Bus, so we can't guarantee that it takes one of the known
enum values.

---

 telepathy-glib/tls-certificate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/telepathy-glib/tls-certificate.c b/telepathy-glib/tls-certificate.c
index ed27242..0029d0c 100644
--- a/telepathy-glib/tls-certificate.c
+++ b/telepathy-glib/tls-certificate.c
@@ -344,8 +344,7 @@ tp_tls_certificate_class_init (TpTLSCertificateClass *klass)
    */
   pspec = g_param_spec_uint ("state", "State",
       "The state of this certificate.",
-      TP_TLS_CERTIFICATE_STATE_PENDING, NUM_TP_TLS_CERTIFICATE_STATES -1,
-      TP_TLS_CERTIFICATE_STATE_PENDING,
+      0, G_MAXUINT32, TP_TLS_CERTIFICATE_STATE_PENDING,
       G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
   g_object_class_install_property (oclass, PROP_STATE, pspec);
 



More information about the telepathy-commits mailing list