[empathy/gnome-3-4] Don't put the status in the header if the user has none
- From: Sjoerd Simons <sjoerds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-3-4] Don't put the status in the header if the user has none
- Date: Mon, 21 May 2012 12:04:49 +0000 (UTC)
commit 6b19934b9a237b648f36b0da943bde046b6488c0
Author: Sjoerd Simons <sjoerd luon net>
Date: Sun May 20 13:07:57 2012 +0200
Don't put the status in the header if the user has none
src/empathy-call-window.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 191a238..564504f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]