From 64fbd9eb65a2cd9e1bf003a1599c064469864e95 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 2 Feb 2010 12:56:52 -0800 Subject: default sink scenario implemented for now, simplification of indicator pattern --- src/sound-service-dbus.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/sound-service-dbus.c') diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 58030cc..5e22dae 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -85,16 +85,12 @@ sound_service_dbus_class_init (SoundServiceDbusClass *klass) /** DBUS Method Callbacks +TODO do not see the point in this returning a boolean and also needing a sink index since the service needs to be ultimately aware of what sink is chosen. **/ -gboolean sound_service_dbus_set_sink_volume(SoundServiceDbus* service, const guint sink_index, const guint volume_percent, GError** gerror) +void sound_service_dbus_set_sink_volume(SoundServiceDbus* service, const guint volume_percent, GError** gerror) { - g_debug("in the set sink volume method in the sound service dbus!, with volume_percent of %i on sink %i", volume_percent, sink_index); - -/* if (!IS_SOUND_SERVICE_DBUS(service)) {*/ -/* g_warning("NO BAD EVIL!");*/ -/* return FALSE;*/ -/* }*/ - return TRUE; + g_debug("in the set sink volume method in the sound service dbus!, with volume_percent of %i", volume_percent); + set_sink_volume(volume_percent); } GList * -- cgit v1.2.3