aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-cell-renderer-text.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-03-27 04:15:58 +0800
committerWill Thompson <will.thompson@collabora.co.uk>2010-03-30 18:30:37 +0800
commite7f70475f0533c310995a9dc3b2f5ee1eb58b618 (patch)
tree43e816b71304eef7aea7c84eba3170310ecb7ca1 /libempathy-gtk/empathy-cell-renderer-text.c
parent802baeadd5caf73b813462791b29d052a7134cd6 (diff)
downloadgsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar.gz
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar.bz2
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar.lz
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar.xz
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.tar.zst
gsoc2013-empathy-e7f70475f0533c310995a9dc3b2f5ee1eb58b618.zip
CellRendererText: Use G_PARAM_STATIC_STRINGS
This patch also changes the name of the "is group" property to use a hyphen (which is the canonical form) rather than an underscore, because the combination of the underscore and G_PARAM_STATIC_STRINGS makes GObject blow up: GLib-GObject-CRITICAL **: g_param_spec_internal: assertion `!(flags & G_PARAM_STATIC_NAME) || is_canonical (name)' failed
Diffstat (limited to 'libempathy-gtk/empathy-cell-renderer-text.c')
-rw-r--r--libempathy-gtk/empathy-cell-renderer-text.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-text.c b/libempathy-gtk/empathy-cell-renderer-text.c
index 200420f17..6e7f02703 100644
--- a/libempathy-gtk/empathy-cell-renderer-text.c
+++ b/libempathy-gtk/empathy-cell-renderer-text.c
@@ -99,29 +99,31 @@ empathy_cell_renderer_text_class_init (EmpathyCellRendererTextClass *klass)
cell_class->render = cell_renderer_text_render;
spec = g_param_spec_string ("name", "Name", "Contact name", NULL,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_NAME, spec);
spec = g_param_spec_uint ("presence-type", "TpConnectionPresenceType",
"The contact's presence type",
0, G_MAXUINT, /* Telepathy enum, can be extended */
TP_CONNECTION_PRESENCE_TYPE_UNKNOWN,
- G_PARAM_READWRITE);
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_PRESENCE_TYPE,
spec);
spec = g_param_spec_string ("status", "Status message",
- "Contact's custom status message", NULL, G_PARAM_READWRITE);
+ "Contact's custom status message", NULL,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_STATUS, spec);
- spec = g_param_spec_boolean ("is_group", "Is group",
- "Whether this cell is a group", FALSE, G_PARAM_READWRITE);
+ spec = g_param_spec_boolean ("is-group", "Is group",
+ "Whether this cell is a group", FALSE,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_IS_GROUP, spec);
spec = g_param_spec_boolean ("compact", "Compact",
"TRUE to show the status alongside the contact name;"
"FALSE to show it on its own line",
- FALSE, G_PARAM_READWRITE);
+ FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_COMPACT, spec);
g_type_class_add_private (object_class, sizeof (EmpathyCellRendererTextPriv));