aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2012-05-20 19:07:57 +0800
committerSjoerd Simons <sjoerd@luon.net>2012-05-21 19:54:00 +0800
commit6b19934b9a237b648f36b0da943bde046b6488c0 (patch)
tree1ad15749c32b79cf6dbbfa9b42a9042f38d6fd4a /src
parent2b263049bd152504227c9ade7e7b6e17cbc95f11 (diff)
downloadgsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar.gz
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar.bz2
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar.lz
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar.xz
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.tar.zst
gsoc2013-empathy-6b19934b9a237b648f36b0da943bde046b6488c0.zip
Don't put the status in the header if the user has none
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 191a23833..564504f99 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1875,7 +1875,11 @@ set_remote_user_name (EmpathyCallWindow *self,
const gchar *status = empathy_contact_get_status (contact);
gchar *label;
- label = g_strdup_printf ("%s\n<small>%s</small>", alias, status);
+ if (status != NULL)
+ label = g_strdup_printf ("%s\n<small>%s</small>", alias, status);
+ else
+ label = g_strdup (alias);
+
gtk_label_set_markup (GTK_LABEL (self->priv->remote_user_name_toolbar),
label);
g_free (label);