From bf02109517f8e770373e13fc78cdda3019d77f04 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Mon, 8 Feb 2010 19:19:07 +0000 Subject: mute ui updates from external intervention --- src/pulse-manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pulse-manager.c') diff --git a/src/pulse-manager.c b/src/pulse-manager.c index ff6f1bb..0a35d92 100644 --- a/src/pulse-manager.c +++ b/src/pulse-manager.c @@ -291,10 +291,11 @@ static void update_sink_info(pa_context *c, const pa_sink_info *info, int eol, v //update the UI pa_volume_t vol = pa_cvolume_avg(&s->volume); // Use the base of the device to ensure maximum acceptable levels on the hardware - gint volume_percent = (vol/s->base_volume); - g_debug("When using base volume => volume = %i", volume_percent); + gdouble volume_percent = (vol/s->base_volume) * 100; + g_debug("When using base volume => volume = %f", volume_percent); g_debug("about to update ui with linear volume of %f", pa_sw_volume_to_linear(vol)); sound_service_dbus_update_sink_volume(dbus_service, pa_sw_volume_to_linear(vol) * 100); + update_mute_ui(s->mute); } } else -- cgit v1.2.3