diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-07-28 19:29:59 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-03 23:02:25 +0800 |
commit | a266ab626d10a421e852043443e3bb37adedba2f (patch) | |
tree | 1d9197f0254a3b8ece3b972f63dc6ac657c2b128 | |
parent | f6c3b455a2e98002eeb02bcaf5cd2cf093aa6cc3 (diff) | |
download | gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar.gz gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar.bz2 gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar.lz gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar.xz gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.tar.zst gsoc2013-empathy-a266ab626d10a421e852043443e3bb37adedba2f.zip |
CallWindow: show 'Mute' on the statusbar when muted
-rw-r--r-- | 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 bd5538a2b..ffad1f1c6 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); |