From 0d44943efc4f3f727861387ba89f57238aa92577 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Wed, 4 May 2011 10:05:16 +1000 Subject: [PATCH] Add a tooltip to the sending message spinner --- src/empathy-chat-window.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 1012e4e9..841005c9 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)) { -- 2.39.2