summaryrefslogtreecommitdiff
path: root/telepathy-glib/channel-iface.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-27 10:48:31 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-27 10:48:31 +0000
commit565682a63d28c415390cf5c0b68c8ce05fa430ad (patch)
treee371287446b2e1cd480cb33d6749e007f4769ac1 /telepathy-glib/channel-iface.c
parent17da17a8d800ecfe8c9fe66d5956faaafecec690 (diff)
downloadtelepathy-glib-565682a63d28c415390cf5c0b68c8ce05fa430ad.tar.gz
TpChannelIface: make channel-type CONSTRUCT_ONLY|READWRITE so TpChannel can implement TpChannelIface
20071127104831-53eee-7d9c2049c5bfa122eddfaa1a2d8d6dc2f1751559.gz
Diffstat (limited to 'telepathy-glib/channel-iface.c')
-rw-r--r--telepathy-glib/channel-iface.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/telepathy-glib/channel-iface.c b/telepathy-glib/channel-iface.c
index 34cd72a10..4e3e665c4 100644
--- a/telepathy-glib/channel-iface.c
+++ b/telepathy-glib/channel-iface.c
@@ -60,15 +60,20 @@ tp_channel_iface_base_init (gpointer klass)
/**
* TpChannelIface:channel-type:
*
- * The D-Bus interface representing the type of this channel. Read-only.
+ * The D-Bus interface representing the type of this channel. Read-only
+ * except during construction (and in connection managers, attempts to
+ * set it during construction will usually be ignored or treated as an
+ * error).
+ *
+ * This is really only read-write for the benefit of #TpChannel -
+ * GLib considers CONSTRUCT_ONLY|READWRITE to be incompatible with
+ * READONLY, because CONSTRUCT_ONLY is a restriction (arguably a GLib bug)
*/
param_spec = g_param_spec_string ("channel-type", "Telepathy channel type",
- "The D-Bus interface representing the "
- "type of this channel.",
- NULL,
- G_PARAM_READABLE |
- G_PARAM_STATIC_NAME |
- G_PARAM_STATIC_BLURB);
+ "The D-Bus interface representing the type of this channel.",
+ NULL,
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
+ G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB);
g_object_interface_install_property (klass, param_spec);
/**