diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-09 15:25:48 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-02-09 15:43:18 +0000 |
commit | 12297c1d9cd9db58cf8be07cf05586ebc080bf72 (patch) | |
tree | 86abc643f7a10e4950c3bfac2c90c4e07c4dcbfe /telepathy-glib/channel.c | |
parent | f654ace092c9a6c4aea6d00bd405f056766a5a50 (diff) | |
download | telepathy-glib-12297c1d9cd9db58cf8be07cf05586ebc080bf72.tar.gz |
Consistently use G_PARAM_STATIC_STRINGS for properties
Many didn't use this shorthand, and some even didn't declare one of the
three strings as static (causing GObject to copy it).
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Vivek Dasmohapatra <vivek@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/channel.c')
-rw-r--r-- | telepathy-glib/channel.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/telepathy-glib/channel.c b/telepathy-glib/channel.c index 6a496f1a2..075b678d1 100644 --- a/telepathy-glib/channel.c +++ b/telepathy-glib/channel.c @@ -1609,8 +1609,7 @@ tp_channel_class_init (TpChannelClass *klass) */ param_spec = g_param_spec_boolean ("channel-ready", "Channel ready?", "Initially FALSE; changes to TRUE when introspection finishes", FALSE, - G_PARAM_READABLE - | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_CHANNEL_READY, param_spec); @@ -1622,8 +1621,7 @@ tp_channel_class_init (TpChannelClass *klass) */ param_spec = g_param_spec_object ("connection", "TpConnection", "The connection to which this object belongs.", TP_TYPE_CONNECTION, - G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | - G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK); + G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_CONNECTION, param_spec); @@ -1642,8 +1640,7 @@ tp_channel_class_init (TpChannelClass *klass) */ param_spec = g_param_spec_uint ("group-self-handle", "Group.SelfHandle", "Undefined if not a group", 0, G_MAXUINT32, 0, - G_PARAM_READABLE - | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_GROUP_SELF_HANDLE, param_spec); @@ -1663,8 +1660,7 @@ tp_channel_class_init (TpChannelClass *klass) */ param_spec = g_param_spec_uint ("group-flags", "Group.GroupFlags", "0 if not a group", 0, G_MAXUINT32, 0, - G_PARAM_READABLE - | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK); + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_GROUP_FLAGS, param_spec); |