diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-01-28 18:26:00 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-01-28 18:26:00 +0000 |
commit | 93ae69dcd77bc81c3146c2321eb12226cd7704df (patch) | |
tree | 0aacaafacbc063d32b1e04477daa2e3599433de2 /src/sound-service-dbus.c | |
parent | 7ec9f75f2a0cdf13a3728c18a33dca9e327e2bf2 (diff) | |
download | ayatana-indicator-sound-93ae69dcd77bc81c3146c2321eb12226cd7704df.tar.gz ayatana-indicator-sound-93ae69dcd77bc81c3146c2321eb12226cd7704df.tar.bz2 ayatana-indicator-sound-93ae69dcd77bc81c3146c2321eb12226cd7704df.zip |
slider event detection hooked up, method also defined on server side but there is a compilation problem which for the life of me i cannot see what i'm doing wrong
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r-- | src/sound-service-dbus.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 4c3b3ca..88ddd22 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -25,7 +25,7 @@ #include <dbus/dbus-glib.h> #include "dbus-shared-names.h" #include "sound-service-dbus.h" -#include "sound-service-client.h" +//#include "sound-service-client.h" #include "sound-service-server.h" #include "common-defs.h" #include "sound-service-marshal.h" @@ -54,7 +54,7 @@ static void sound_service_dbus_class_init (SoundServiceDbusClass *klass); static void sound_service_dbus_init (SoundServiceDbus *self); static void sound_service_dbus_dispose (GObject *object); static void sound_service_dbus_finalize (GObject *object); - +gboolean sound_service_dbus_set_sink_volume(SoundServiceDbus* service, const guint volume_percent, GError** gerror); /* GObject Boilerplate */ G_DEFINE_TYPE (SoundServiceDbus, sound_service_dbus, G_TYPE_OBJECT); @@ -82,11 +82,24 @@ sound_service_dbus_class_init (SoundServiceDbusClass *klass) G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_BOOLEAN); } +//void sound_service_dbus_sink_volume_changed (SoundServiceDbus* obj, gint volume); + +gboolean 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! Holy Fuck with volume_percent of %i", volume_percent); +/* if (!IS_SOUND_SERVICE_DBUS(service)) {*/ +/* g_warning("NO BAD EVIL!");*/ +/* return FALSE;*/ +/* }*/ + return TRUE; +} + /** Utility methods to emit signals from the service into the ether. **/ -void sound_service_dbus_sink_input_while_muted(SoundServiceDbus* obj, gint sink_index, gboolean value){ +void sound_service_dbus_sink_input_while_muted(SoundServiceDbus* obj, gint sink_index, gboolean value) +{ /* g_assert((num < LAST_SIGNAL) && (num >= 0));*/ g_debug("Emitting signal: SINK_INPUT_WHILE_MUTED, with sink_index %i and value %i", sink_index, value); g_signal_emit(obj, |