[empathy: 4/5] Use telepathy property constants in server EmpathyServerTLSHandler
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 4/5] Use telepathy property constants in server EmpathyServerTLSHandler
- Date: Tue, 22 Mar 2011 14:23:14 +0000 (UTC)
commit 698675bdc1fbc7e6e622be24e272df7e70f34716
Author: Stef Walter <stefw collabora co uk>
Date: Tue Mar 22 15:13:33 2011 +0100
Use telepathy property constants in server EmpathyServerTLSHandler
https://bugzilla.gnome.org/show_bug.cgi?id=645119
libempathy/empathy-server-tls-handler.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy/empathy-server-tls-handler.c b/libempathy/empathy-server-tls-handler.c
index 95c0b0a..31afa27 100644
--- a/libempathy/empathy-server-tls-handler.c
+++ b/libempathy/empathy-server-tls-handler.c
@@ -20,6 +20,7 @@
#include "empathy-server-tls-handler.h"
+#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/util.h>
#define DEBUG_FLAG EMPATHY_DEBUG_TLS
@@ -120,13 +121,13 @@ tls_handler_init_async (GAsyncInitable *initable,
properties = tp_channel_borrow_immutable_properties (priv->channel);
hostname = tp_asv_get_string (properties,
- EMP_IFACE_CHANNEL_TYPE_SERVER_TLS_CONNECTION ".Hostname");
+ TP_PROP_CHANNEL_TYPE_SERVER_TLS_CONNECTION_HOSTNAME);
priv->hostname = g_strdup (hostname);
DEBUG ("Received hostname: %s", hostname);
identities = tp_asv_get_strv (properties,
- EMP_IFACE_CHANNEL_TYPE_SERVER_TLS_CONNECTION ".ReferenceIdentities");
+ TP_PROP_CHANNEL_TYPE_SERVER_TLS_CONNECTION_REFERENCE_IDENTITIES);
/*
* If the channel doesn't implement the ReferenceIdentities parameter
@@ -279,8 +280,7 @@ empathy_server_tls_handler_class_init (EmpathyServerTLSHandlerClass *klass)
pspec = g_param_spec_boxed ("reference-identities", "Reference Identities",
"The server certificate should certify one of these identities",
- G_TYPE_STRV,
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ G_TYPE_STRV, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (oclass, PROP_REFERENCE_IDENTITIES, pspec);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]