diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-04 08:05:16 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-05 15:31:19 +0800 |
commit | 0d44943efc4f3f727861387ba89f57238aa92577 (patch) | |
tree | 9f2861aebf8cab7210ce316aead348e1495d0d35 /src | |
parent | 24e6b10a9c1795964f0e6e80e074eff24344f64b (diff) | |
download | gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar.gz gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar.bz2 gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar.lz gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar.xz gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.tar.zst gsoc2013-empathy-0d44943efc4f3f727861387ba89f57238aa92577.zip |
Add a tooltip to the sending message spinner
Diffstat (limited to 'src')
-rw-r--r-- | 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 1012e4e90..841005c93 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)) { |