Mercurial > pidgin.yaz
changeset 26454:d254bc6b4d60
Remove purple_media_mute.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Mon, 30 Mar 2009 01:19:02 +0000 |
parents | 12c7db418c3e |
children | 84374a764255 |
files | libpurple/media.c libpurple/media.h pidgin/gtkmedia.c |
diffstat | 3 files changed, 4 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/media.c Mon Mar 30 01:06:44 2009 +0000 +++ b/libpurple/media.c Mon Mar 30 01:19:02 2009 +0000 @@ -2170,14 +2170,6 @@ #endif } -void purple_media_mute(PurpleMedia *media, gboolean active) -{ -#ifdef USE_VV - purple_media_stream_info(media, active ? PURPLE_MEDIA_INFO_MUTE : - PURPLE_MEDIA_INFO_UNMUTE, NULL, NULL, TRUE); -#endif -} - void purple_media_set_input_volume(PurpleMedia *media, const gchar *session_id, double level) {
--- a/libpurple/media.h Mon Mar 30 01:06:44 2009 +0000 +++ b/libpurple/media.h Mon Mar 30 01:19:02 2009 +0000 @@ -527,14 +527,6 @@ const gchar *participant); /** - * Mutes or unmutes all the audio local audio sources. - * - * @param media The media object to mute or unmute - * @param active @c TRUE to mutes all of the local audio sources, or @c FALSE to unmute. - */ -void purple_media_mute(PurpleMedia *media, gboolean active); - -/** * Sets the input volume of all the selected sessions. * * @param media The media object the sessions are in.
--- a/pidgin/gtkmedia.c Mon Mar 30 01:06:44 2009 +0000 +++ b/pidgin/gtkmedia.c Mon Mar 30 01:19:02 2009 +0000 @@ -173,8 +173,10 @@ static void pidgin_media_mute_toggled(GtkToggleButton *toggle, PidginMedia *media) { - purple_media_mute(media->priv->media, - gtk_toggle_button_get_active(toggle)); + purple_media_stream_info(media->priv->media, + gtk_toggle_button_get_active(toggle) ? + PURPLE_MEDIA_INFO_MUTE : PURPLE_MEDIA_INFO_UNMUTE, + NULL, NULL, TRUE); } static gboolean