]> git.0d.be Git - empathy.git/commitdiff
CallWindow: show 'Mute' on the statusbar when muted
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 28 Jul 2011 11:29:59 +0000 (12:29 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Wed, 3 Aug 2011 15:02:25 +0000 (16:02 +0100)
src/empathy-call-window.c

index bd5538a2b0fcaf8e1685ab6acd3492887e167a03..ffad1f1c660736dbccdd6baa86b263366b145c54 100644 (file)
@@ -1904,14 +1904,23 @@ empathy_call_window_update_timer (gpointer user_data)
 {
   EmpathyCallWindow *self = EMPATHY_CALL_WINDOW (user_data);
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
+  const gchar *status;
   gchar *str;
   gdouble time_;
 
   time_ = g_timer_elapsed (priv->timer, NULL);
 
+  if (priv->call_state == HELD)
+    status = _("On hold");
+  else if (!gtk_toggle_tool_button_get_active (
+      GTK_TOGGLE_TOOL_BUTTON (priv->mic_button)))
+    status = _("Mute");
+  else
+    status = _("Duration");
+
   /* Translators: 'status - minutes:seconds' the caller has been connected */
   str = g_strdup_printf (_("%s — %d:%02dm"),
-      priv->call_state == HELD ? _("On hold") : _("Connected"),
+      status,
       (int) time_ / 60, (int) time_ % 60);
   empathy_call_window_status_message (self, str);
   g_free (str);