aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-02 18:49:05 -0800
committerConor Curran <conor.curran@canonical.com>2010-02-02 18:49:05 -0800
commit19eb7827d73b43d93aecfea4e1b7c4a2703f92c1 (patch)
treeb936f370747ed0352af8cb056381034553a70429 /src/sound-service.c
parent64fbd9eb65a2cd9e1bf003a1599c064469864e95 (diff)
downloadayatana-indicator-sound-19eb7827d73b43d93aecfea4e1b7c4a2703f92c1.tar.gz
ayatana-indicator-sound-19eb7827d73b43d93aecfea4e1b7c4a2703f92c1.tar.bz2
ayatana-indicator-sound-19eb7827d73b43d93aecfea4e1b7c4a2703f92c1.zip
volume slider is now controlling the volume
Diffstat (limited to 'src/sound-service.c')
-rw-r--r--src/sound-service.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/sound-service.c b/src/sound-service.c
index 0587e10..1537fce 100644
--- a/src/sound-service.c
+++ b/src/sound-service.c
@@ -91,23 +91,18 @@ service_shutdown (IndicatorService *service, gpointer user_data)
return;
}
-void update_pa_state(gboolean pa_state, gboolean sink_available, gboolean sink_muted)
+void update_pa_state(gboolean pa_state, gboolean sink_available, gboolean sink_muted, gdouble volume_percent)
{
b_sink_available = sink_available;
b_all_muted = sink_muted;
b_pulse_ready = pa_state;
- g_debug("update pa state with %i, %i and %i", pa_state, sink_available, sink_muted);
+ g_debug("update pa state with state %i, availability of %i, mute value of %i and a volume percent is %f", pa_state, sink_available, sink_muted, volume_percent);
rebuild_sound_menu(root_menuitem, dbus_interface);
}
/**
Pulsemanager will call this once enough info has been gathered about the PA state
**/
-/*void pa_init_state(GHashTable *sinks)*/
-/*{*/
-/* sinks_hash = sinks;*/
-/* rebuild_sound_menu(root_menuitem, dbus_interface); */
-/*}*/
/* Main, is well, main. It brings everything up and throws