]> git.0d.be Git - empathy.git/commitdiff
Don't put the status in the header if the user has none
authorSjoerd Simons <sjoerd@luon.net>
Sun, 20 May 2012 11:07:57 +0000 (13:07 +0200)
committerSjoerd Simons <sjoerd@luon.net>
Mon, 21 May 2012 11:54:00 +0000 (13:54 +0200)
src/empathy-call-window.c

index 191a238335726ea332008f18c5d30a54aa550591..564504f994be42de18fe4776bcfc4e035afc07dd 100644 (file)
@@ -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);