aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-cell-renderer-text.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-01 23:08:17 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-01 23:08:17 +0800
commit1d042fed20a17c94c546538af93e911c77a7f33e (patch)
treef5a196590febc6608f975305f57524ca752d9f65 /libempathy-gtk/empathy-cell-renderer-text.c
parent9d03a4333a55b07e137f3be5460e7550ec8bedb5 (diff)
downloadgsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar.gz
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar.bz2
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar.lz
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar.xz
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.tar.zst
gsoc2013-empathy-1d042fed20a17c94c546538af93e911c77a7f33e.zip
empathy-cell-renderer-text: don't display status if it's NULL (#614562)
Diffstat (limited to 'libempathy-gtk/empathy-cell-renderer-text.c')
-rw-r--r--libempathy-gtk/empathy-cell-renderer-text.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-text.c b/libempathy-gtk/empathy-cell-renderer-text.c
index 6e7f02703..eb4ccb073 100644
--- a/libempathy-gtk/empathy-cell-renderer-text.c
+++ b/libempathy-gtk/empathy-cell-renderer-text.c
@@ -354,7 +354,10 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell,
status = empathy_presence_get_default_message (priv->presence_type);
}
- str = g_strdup_printf ("%s\n%s", priv->name, status);
+ if (status == NULL)
+ str = g_strdup (priv->name);
+ else
+ str = g_strdup_printf ("%s\n%s", priv->name, status);
}
g_object_set (cell,