diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-21 15:39:43 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-06-21 16:09:34 +0200 |
commit | d50e2a51e92c2f3c37f7c30d7351c4651da350f9 (patch) | |
tree | 0d15a65f5d34a7d02fd34652439eacca39f76ec7 | |
parent | 4bde00853bbd0089732c10eeb421a66c00740f57 (diff) |
channel-iface: set TP_UNKNOWN_HANDLE_TYPE as default handle type
TP_HANDLE_TYPE_NONE is not a good default, if we don't know the handle type we
shouln't try to guess it.
This also confuses TpChannel which think we are setting a valid handle type;
see fdo#38524.
-rw-r--r-- | telepathy-glib/channel-iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-glib/channel-iface.c b/telepathy-glib/channel-iface.c index 790358697..8331a0481 100644 --- a/telepathy-glib/channel-iface.c +++ b/telepathy-glib/channel-iface.c @@ -30,6 +30,7 @@ */ #include <telepathy-glib/channel-iface.h> +#include <telepathy-glib/handle.h> static void tp_channel_iface_base_init (gpointer klass) @@ -95,7 +96,7 @@ tp_channel_iface_base_init (gpointer klass) */ param_spec = g_param_spec_uint ("handle-type", "Handle type", "The TpHandleType of this channel's associated handle.", - 0, G_MAXUINT32, 0, + 0, G_MAXUINT32, TP_UNKNOWN_HANDLE_TYPE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK); g_object_interface_install_property (klass, param_spec); |