summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection-manager.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-02-09 15:25:48 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-02-09 15:43:18 +0000
commit12297c1d9cd9db58cf8be07cf05586ebc080bf72 (patch)
tree86abc643f7a10e4950c3bfac2c90c4e07c4dcbfe /telepathy-glib/connection-manager.c
parentf654ace092c9a6c4aea6d00bd405f056766a5a50 (diff)
downloadtelepathy-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/connection-manager.c')
-rw-r--r--telepathy-glib/connection-manager.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c
index c074d7fae..9d207697b 100644
--- a/telepathy-glib/connection-manager.c
+++ b/telepathy-glib/connection-manager.c
@@ -1467,8 +1467,7 @@ tp_connection_manager_class_init (TpConnectionManagerClass *klass)
param_spec = g_param_spec_uint ("info-source", "CM info source",
"Where we got the current information on supported protocols",
TP_CM_INFO_SOURCE_NONE, TP_CM_INFO_SOURCE_LIVE, TP_CM_INFO_SOURCE_NONE,
- 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_INFO_SOURCE,
param_spec);
@@ -1480,8 +1479,7 @@ tp_connection_manager_class_init (TpConnectionManagerClass *klass)
param_spec = g_param_spec_string ("connection-manager", "CM name",
"The name of the connection manager, e.g. \"gabble\" (read-only)",
NULL,
- 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_CONNECTION_MANAGER,
param_spec);
@@ -1497,8 +1495,7 @@ tp_connection_manager_class_init (TpConnectionManagerClass *klass)
param_spec = g_param_spec_string ("manager-file", ".manager filename",
"The .manager filename",
NULL,
- G_PARAM_CONSTRUCT | G_PARAM_READWRITE |
- G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK);
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_MANAGER_FILE,
param_spec);
@@ -1510,8 +1507,7 @@ tp_connection_manager_class_init (TpConnectionManagerClass *klass)
*/
param_spec = g_param_spec_boolean ("always-introspect", "Always introspect?",
"Opportunistically introspect the CM when it's run", FALSE,
- G_PARAM_READWRITE |
- G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_ALWAYS_INTROSPECT,
param_spec);