diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2017-12-14 00:38:54 +0000 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2017-12-14 00:38:54 +0000 |
commit | ef39eb880567778e3a92a29c59e3aefac2739b06 (patch) | |
tree | dde88ebd8acf8c8fc9d7b8391fb3f5668ba17610 | |
parent | 2dc10625a60cbb8a21438fbfc0a6f1af5b8f7c38 (diff) | |
download | pidgin-ef39eb880567778e3a92a29c59e3aefac2739b06.tar.gz |
Pidgin: Indicate mute/unmute status when changed remotely.
Now when someone mutes me when I'm on a call, I notice and can unmute
myself when appropriate. Before, I had no idea. And to unmute I had to
first mute myself (locally) and then unmute again.
Fixes #17273
-rw-r--r-- | pidgin/gtkmedia.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pidgin/gtkmedia.c b/pidgin/gtkmedia.c index 2c1fdea64b..f3674c94ab 100644 --- a/pidgin/gtkmedia.c +++ b/pidgin/gtkmedia.c @@ -1112,6 +1112,10 @@ pidgin_media_stream_info_cb(PurpleMedia *media, PurpleMediaInfoType type, gtk_statusbar_push(GTK_STATUSBAR(gtkmedia->priv->statusbar), 0, _("Call in progress.")); gtk_widget_show(GTK_WIDGET(gtkmedia)); + } else if (type == PURPLE_MEDIA_INFO_MUTE && !local) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtkmedia->priv->mute), TRUE); + } else if (type == PURPLE_MEDIA_INFO_UNMUTE && !local) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gtkmedia->priv->mute), FALSE); } } |