aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-02-08 17:21:05 +0000
committerConor Curran <conor.curran@canonical.com>2010-02-08 17:21:05 +0000
commitea417ae84133c26aed0b257376ab1d1c567a9779 (patch)
treef889cfcbaf1efe9f20e338b27f516bf8f6f3976b /src/sound-service-dbus.c
parentf9ef87f71c488f6791e32b1cf7205fb65db81ce8 (diff)
downloadayatana-indicator-sound-ea417ae84133c26aed0b257376ab1d1c567a9779.tar.gz
ayatana-indicator-sound-ea417ae84133c26aed0b257376ab1d1c567a9779.tar.bz2
ayatana-indicator-sound-ea417ae84133c26aed0b257376ab1d1c567a9779.zip
automatic slider volume updates working
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 9a325fe..635dfeb 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -88,8 +88,8 @@ sound_service_dbus_class_init (SoundServiceDbusClass *klass)
G_SIGNAL_RUN_LAST,
0,
NULL, NULL,
- g_cclosure_marshal_VOID__INT,
- G_TYPE_NONE, 1, G_TYPE_INT);
+ g_cclosure_marshal_VOID__DOUBLE,
+ G_TYPE_NONE, 1, G_TYPE_DOUBLE);
}
/**
@@ -112,6 +112,7 @@ sound_service_dbus_get_sink_list (SoundServiceDbus *self)
/**
+SIGNALS
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)
@@ -125,9 +126,9 @@ void sound_service_dbus_sink_input_while_muted(SoundServiceDbus* obj, gint sink_
value);
}
-void sound_service_dbus_update_sink_volume(SoundServiceDbus* obj, gint sink_volume)
+void sound_service_dbus_update_sink_volume(SoundServiceDbus* obj, gdouble sink_volume)
{
- g_debug("Emitting signal: UPDATE_SINK_VOLUME, with sink_volme %i", sink_volume);
+ g_debug("Emitting signal: SINK_VOLUME_UPDATE, with sink_volme %f", sink_volume);
g_signal_emit(obj,
signals[SINK_VOLUME_UPDATE],
0,