diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-31 17:43:36 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-31 17:43:36 +0800 |
commit | e92cc2a571051be566895ed3f09faebd8c56716f (patch) | |
tree | 0967f5a99278c224ba3599ce211f127587bed19c /libempathy/empathy-message.c | |
parent | ad59f77dfdba77af558ae2d278c92b0a7ab747d7 (diff) | |
download | gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar.gz gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar.bz2 gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar.lz gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar.xz gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.tar.zst gsoc2013-empathy-e92cc2a571051be566895ed3f09faebd8c56716f.zip |
Be consistent with EmpathyMessage style.
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r-- | libempathy/empathy-message.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index 4b9413b1b..a403766e4 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -71,7 +71,6 @@ static void empathy_message_class_init (EmpathyMessageClass *class) { GObjectClass *object_class; - GParamSpec *pspec; object_class = G_OBJECT_CLASS (class); object_class->finalize = empathy_message_finalize; @@ -126,12 +125,13 @@ empathy_message_class_init (EmpathyMessageClass *class) G_PARAM_READWRITE)); - pspec = g_param_spec_boolean ("incoming", - "Incoming", - "If this is an incoming (as opposed to sent) message", - FALSE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); - g_object_class_install_property (object_class, PROP_INCOMING, pspec); + g_object_class_install_property (object_class, + PROP_INCOMING, + g_param_spec_boolean ("incoming", + "Incoming", + "If this is an incoming (as opposed to sent) message", + FALSE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_type_class_add_private (object_class, sizeof (EmpathyMessagePriv)); @@ -598,7 +598,15 @@ empathy_message_set_id (EmpathyMessage *message, guint id) void empathy_message_set_incoming (EmpathyMessage *message, gboolean incoming) { - g_object_set (message, "incoming", incoming, NULL); + EmpathyMessagePriv *priv; + + g_return_if_fail (EMPATHY_IS_MESSAGE (message)); + + priv = GET_PRIV (message); + + priv->incoming = incoming; + + g_object_notify (G_OBJECT (message), "incoming"); } gboolean |