[gnome-chat] embed: Use the default message for an empty status string



commit 3b94f7374e8da66fd0fd46d23077ee5730da6058
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Sep 13 15:12:49 2013 +0200

    embed: Use the default message for an empty status string

 src/chat-embed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chat-embed.c b/src/chat-embed.c
index ef938d6..f33c8b3 100644
--- a/src/chat-embed.c
+++ b/src/chat-embed.c
@@ -155,7 +155,7 @@ chat_embed_row_activated (ChatEmbed *self, GtkListBoxRow *row)
   gtk_label_set_markup (GTK_LABEL (priv->status_area_nickname), markup);
 
   presence = tp_account_get_current_presence (account, NULL, &status_message);
-  if (status_message == NULL)
+  if (status_message == NULL || status_message[0] == '\0')
     status_message = g_strdup (empathy_presence_get_default_message (presence));
   icon_name = empathy_icon_name_for_presence (presence);
   gtk_image_set_from_icon_name (GTK_IMAGE (priv->status_area_presence_icon), icon_name, GTK_ICON_SIZE_MENU);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]