[empathy] CallWindow: show 'Mute' on the statusbar when muted



commit a266ab626d10a421e852043443e3bb37adedba2f
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Thu Jul 28 12:29:59 2011 +0100

    CallWindow: show 'Mute' on the statusbar when muted

 src/empathy-call-window.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index bd5538a..ffad1f1 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -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);



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