# HG changeset patch # User Elliott Sales de Andrade # Date 1324528079 0 # Node ID 544e6ed9d85073d51ce555027f445bed8765a5b7 # Parent 9e9eb3cd5677da2fba038cc8fc4c732f4229d7c7 The function gst_msg_db_to_percent already retyrns a number between 0.0 and 1.0, and a GtkProgressBar is between 0.0 and 1.0, so I don't know why the level is multiplied by 5. Maybe microphones aren't that loud? I expect the "volume" control to increase it, so I'm not so sure. I guess we'll see what people think. Fixes #14426. diff -r 9e9eb3cd5677 -r 544e6ed9d850 pidgin/gtkmedia.c --- a/pidgin/gtkmedia.c Thu Dec 22 03:09:12 2011 +0000 +++ b/pidgin/gtkmedia.c Thu Dec 22 04:27:59 2011 +0000 @@ -455,7 +455,7 @@ progress = pidgin_media_get_widget(gtkmedia, session_id, participant); if (progress) - gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), level * 5); + gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), level); } diff -r 9e9eb3cd5677 -r 544e6ed9d850 pidgin/plugins/vvconfig.c --- a/pidgin/plugins/vvconfig.c Thu Dec 22 03:09:12 2011 +0000 +++ b/pidgin/plugins/vvconfig.c Thu Dec 22 04:27:59 2011 +0000 @@ -612,7 +612,7 @@ GstElement *valve; percent = gst_msg_db_to_percent(msg, "rms"); - gtk_progress_bar_set_fraction(ctx->level, percent * 5); + gtk_progress_bar_set_fraction(ctx->level, percent); percent = gst_msg_db_to_percent(msg, "decay"); threshold = gtk_range_get_value(ctx->threshold) / 100.0;