aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-08 19:19:07 +0000
committerConor Curran <conor.curran@canonical.com>2010-02-08 19:19:07 +0000
commitbf02109517f8e770373e13fc78cdda3019d77f04 (patch)
tree8ac695e9ac59e2b60930b53f7fcdca91d2311442 /src/pulse-manager.c
parentd1e576becc28434d42e29640b8674342f8b6f521 (diff)
downloadayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.tar.gz
ayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.tar.bz2
ayatana-indicator-sound-bf02109517f8e770373e13fc78cdda3019d77f04.zip
mute ui updates from external intervention
Diffstat (limited to 'src/pulse-manager.c')
-rw-r--r--src/pulse-manager.c5
1 files changed, 3 insertions, 2 deletions
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