]> git.0d.be Git - empathy.git/commitdiff
Add a tooltip to the sending message spinner
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 4 May 2011 00:05:16 +0000 (10:05 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 5 May 2011 07:31:19 +0000 (17:31 +1000)
src/empathy-chat-window.c

index 1012e4e907ba169e720972528b273aaecaece253..841005c9385163a2d6d84153be88a494e3abd252 100644 (file)
@@ -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)) {