Mercurial > pidgin.yaz
changeset 25726:eb289e9086bf
Only show the mute button when sending an audio stream.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Sun, 17 Aug 2008 01:06:27 +0000 |
parents | 64080c01ee50 |
children | f10e0ac24595 |
files | pidgin/gtkmedia.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkmedia.c Sun Aug 17 00:49:29 2008 +0000 +++ b/pidgin/gtkmedia.c Sun Aug 17 01:06:27 2008 +0000 @@ -435,6 +435,8 @@ gtkmedia->priv->send_progress, FALSE, FALSE, 0); gtk_widget_show(gtkmedia->priv->send_progress); gst_element_set_state(audiosendbin, GST_STATE_PLAYING); + + gtk_widget_show(gtkmedia->priv->mute); } if (audiorecvbin || audiosendbin || videorecvbin || videosendbin) @@ -592,21 +594,18 @@ gtk_widget_hide(gtkmedia->priv->accept); gtk_widget_hide(gtkmedia->priv->reject); gtk_widget_show(gtkmedia->priv->hangup); - gtk_widget_hide(gtkmedia->priv->mute); break; case PIDGIN_MEDIA_REQUESTED: gtk_widget_hide(gtkmedia->priv->calling); gtk_widget_show(gtkmedia->priv->accept); gtk_widget_show(gtkmedia->priv->reject); gtk_widget_hide(gtkmedia->priv->hangup); - gtk_widget_hide(gtkmedia->priv->mute); break; case PIDGIN_MEDIA_ACCEPTED: gtk_widget_show(gtkmedia->priv->hangup); gtk_widget_hide(gtkmedia->priv->calling); gtk_widget_hide(gtkmedia->priv->accept); gtk_widget_hide(gtkmedia->priv->reject); - gtk_widget_show(gtkmedia->priv->mute); break; default: break;