[empathy] empathy-cell-renderer-text: don't display status if it's NULL (#614562)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy-cell-renderer-text: don't display status if it's NULL (#614562)
- Date: Thu, 1 Apr 2010 15:19:59 +0000 (UTC)
commit 1d042fed20a17c94c546538af93e911c77a7f33e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Apr 1 17:08:17 2010 +0200
empathy-cell-renderer-text: don't display status if it's NULL (#614562)
libempathy-gtk/empathy-cell-renderer-text.c | 5 ++++-
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 6e7f027..eb4ccb0 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]