soc.2008.vv: b5d0b0fc: Only show the mute button when sending a...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Sat Aug 16 21:35:45 EDT 2008
-----------------------------------------------------------------
Revision: b5d0b0fc961f8ad6a388f8c3991e43f19c5946a6
Ancestor: bb951c695ca37cb37503370768894976a000527e
Author: maiku at soc.pidgin.im
Date: 2008-08-17T01:06:27
Branch: im.pidgin.soc.2008.vv
URL: http://d.pidgin.im/viewmtn/revision/info/b5d0b0fc961f8ad6a388f8c3991e43f19c5946a6
Modified files:
pidgin/gtkmedia.c
ChangeLog:
Only show the mute button when sending an audio stream.
-------------- next part --------------
============================================================
--- pidgin/gtkmedia.c eaf1226d948f017313a0517ccf40e8c0a163e0e7
+++ pidgin/gtkmedia.c 9356dc99c1eccdeb419fda3b1e66a084a60dd489
@@ -435,6 +435,8 @@ pidgin_media_accept_cb(PurpleMedia *medi
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 @@ pidgin_media_set_state(PidginMedia *gtkm
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;
More information about the Commits
mailing list