aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:14:40 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:14:40 +0800
commit2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39 (patch)
treed201b96df25bced5a10b833c88348d4575ab694e /libempathy
parentbdbc83f39d0a0909d1a4a0c052969f0d6e65d511 (diff)
downloadgsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.gz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.bz2
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.lz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.xz
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.tar.zst
gsoc2013-empathy-2ecd4f97ed1fbce4b9e2a394f461ae0d5066cc39.zip
Style fixes
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2174
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c4
-rw-r--r--libempathy/empathy-message.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 9835b59bc..2090ae7c2 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -37,7 +37,7 @@ typedef struct {
EmpathyContact *receiver;
gchar *body;
time_t timestamp;
- guint id;
+ guint id;
} EmpathyMessagePriv;
static void empathy_message_finalize (GObject *object);
@@ -485,6 +485,8 @@ empathy_message_get_id (EmpathyMessage *message)
{
EmpathyMessagePriv *priv = GET_PRIV (message);
+ g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), 0);
+
return priv->id;
}
diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h
index 44e626a5a..95883f2db 100644
--- a/libempathy/empathy-message.h
+++ b/libempathy/empathy-message.h
@@ -72,8 +72,8 @@ gboolean empathy_message_should_highlight (EmpathyMessage
TpChannelTextMessageType empathy_message_type_from_str (const gchar *type_str);
const gchar * empathy_message_type_to_str (TpChannelTextMessageType type);
-guint empathy_message_get_id (EmpathyMessage *message);
-void empathy_message_set_id (EmpathyMessage *message, guint id);
+guint empathy_message_get_id (EmpathyMessage *message);
+void empathy_message_set_id (EmpathyMessage *message, guint id);
G_END_DECLS