aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-11 05:51:06 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-11 05:51:06 -0600
commitf5858b0a17a43bd46fcd2351a160a6ec74171cc6 (patch)
treeba4bb1e05882496078414e5afd30245d2c73b44f /src/indicator-sound.c
parent7440e8668c7d018e8ef85aea08ee5924da813d9d (diff)
downloadayatana-indicator-sound-f5858b0a17a43bd46fcd2351a160a6ec74171cc6.tar.gz
ayatana-indicator-sound-f5858b0a17a43bd46fcd2351a160a6ec74171cc6.tar.bz2
ayatana-indicator-sound-f5858b0a17a43bd46fcd2351a160a6ec74171cc6.zip
signals being sent correctly
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 1ca3447..ed35d7a 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -112,8 +112,6 @@ static void get_sink_availability_cb ( GObject *object,
GAsyncResult *res,
gpointer user_data );
-
-
/****Volume States 'members' ***/
static void update_state(const gint state);
@@ -704,8 +702,12 @@ static void g_signal_cb ( GDBusProxy *proxy,
gpointer user_data)
{
IndicatorSound *self = INDICATOR_SOUND(user_data);
- gboolean input = g_variant_get_boolean (parameters);
g_return_if_fail ( IS_INDICATOR_SOUND(self) );
+
+ g_variant_ref (parameters);
+ GVariant *value = g_variant_get_child_value (parameters, 0);
+ gboolean input = g_variant_get_boolean (value);
+ g_variant_unref (parameters);
if (g_strcmp0(signal_name, INDICATOR_SOUND_SIGNAL_SINK_AVAILABLE_UPDATE) == 0){
react_to_signal_sink_availability_update ( input, self );