aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-11 10:54:13 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-11 10:54:13 -0600
commitecb6cb2056263d3c9066c1ace0e4c9d54186e142 (patch)
treeccc9260892b641f463bc4cdcf26e9905e4a53176
parentcf13be5b4436b802488e1980bb89aa87997cd90e (diff)
downloadayatana-indicator-sound-ecb6cb2056263d3c9066c1ace0e4c9d54186e142.tar.gz
ayatana-indicator-sound-ecb6cb2056263d3c9066c1ace0e4c9d54186e142.tar.bz2
ayatana-indicator-sound-ecb6cb2056263d3c9066c1ace0e4c9d54186e142.zip
sink available flag set
-rw-r--r--src/indicator-sound.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 6512830..ab69b14 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -481,7 +481,6 @@ static void get_sink_availability_cb ( GObject *object,
GVariant *result, *value;
GError *error = NULL;
- gboolean is_available;
result = g_dbus_proxy_call_finish ( priv->dbus_proxy,
res,
@@ -494,15 +493,15 @@ static void get_sink_availability_cb ( GObject *object,
}
value = g_variant_get_child_value(result, 0);
- is_available = g_variant_get_boolean(value);
+ device_available = g_variant_get_boolean(value);
- if (is_available == FALSE) {
+ if (device_available == FALSE) {
update_state(STATE_SINKS_NONE);
}
if(priv->volume_widget != NULL){
- GtkWidget* slider_widget = volume_widget_get_ido_slider(VOLUME_WIDGET(priv->volume_widget));
- gtk_widget_set_sensitive(slider_widget, is_available);
+ GtkWidget* slider_widget = volume_widget_get_ido_slider(VOLUME_WIDGET(priv->volume_widget));
+ gtk_widget_set_sensitive(slider_widget, device_available);
}
g_variant_unref(value);