[empathy: 6/7] Add a tooltip to the sending message spinner



commit 0d44943efc4f3f727861387ba89f57238aa92577
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Wed May 4 10:05:16 2011 +1000

    Add a tooltip to the sending message spinner

 src/empathy-chat-window.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 1012e4e..841005c 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -741,12 +741,17 @@ chat_window_update_chat_tab_full (EmpathyChat *chat,
 			      tp_account_get_display_name (account));
 
 	if (nb_sending > 0) {
-		append_markup_printf (tooltip, "\n");
-		append_markup_printf (tooltip,
-				      ngettext ("Sending %d message",
-					        "Sending %d messages",
-						nb_sending),
-				      nb_sending);
+		char *tmp = g_strdup_printf (
+			ngettext ("Sending %d message",
+				  "Sending %d messages",
+				  nb_sending),
+			nb_sending);
+
+		g_string_append (tooltip, "\n");
+		g_string_append (tooltip, tmp);
+
+		gtk_widget_set_tooltip_text (sending_spinner, tmp);
+		g_free (tmp);
 	}
 
 	if (!EMP_STR_EMPTY (status)) {



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