summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 14:45:59 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 15:18:59 (GMT)
commit8375259908c5a997f8a01767cb72bc111cb51330 (patch)
tree7c7a8caffef23dabd79fece13c59f7748a8895d0
parent78cf4c971f1eb56df690e8c50478bfa3958ca801 (diff)
downloadtelepathy-glib-8375259908c5a997f8a01767cb72bc111cb51330.tar.gz
telepathy-glib-8375259908c5a997f8a01767cb72bc111cb51330.tar.xz
check type of self in getters
-rw-r--r--telepathy-glib/text-channel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index e736d13..b37fb36 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -1001,6 +1001,8 @@ tp_text_channel_new (TpConnection *conn,
const gchar * const *
tp_text_channel_get_supported_content_types (TpTextChannel *self)
{
+ g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), NULL);
+
return (const gchar * const *) self->priv->supported_content_types;
}
@@ -1018,6 +1020,8 @@ TpMessagePartSupportFlags
tp_text_channel_get_message_part_support_flags (
TpTextChannel *self)
{
+ g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), 0);
+
return self->priv->message_part_support_flags;
}
@@ -1035,6 +1039,8 @@ TpDeliveryReportingSupportFlags
tp_text_channel_get_delivery_reporting_support (
TpTextChannel *self)
{
+ g_return_val_if_fail (TP_IS_TEXT_CHANNEL (self), 0);
+
return self->priv->delivery_reporting_support;
}