aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-02 12:56:52 -0800
committerConor Curran <conor.curran@canonical.com>2010-02-02 12:56:52 -0800
commit64fbd9eb65a2cd9e1bf003a1599c064469864e95 (patch)
treed18c0b59e18ca299fdf71c2755a5c300e4a5a1e5 /src/sound-service-dbus.c
parenta4608dd1c365f426436ab1ceeca1b9108a72d330 (diff)
downloadayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.tar.gz
ayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.tar.bz2
ayatana-indicator-sound-64fbd9eb65a2cd9e1bf003a1599c064469864e95.zip
default sink scenario implemented for now, simplification of indicator pattern
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c12
1 files changed, 4 insertions, 8 deletions
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 *