aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-04-14 17:13:43 +0100
committerConor Curran <conor.curran@canonical.com>2010-04-14 17:13:43 +0100
commit132bf8d107161102b63bf254056624bc00b8d01f (patch)
treef577dd2e514c85c2312874cbe709d05784992144
parent80365e3a179e1b33beb0cf029871928a6357e557 (diff)
downloadayatana-indicator-sound-132bf8d107161102b63bf254056624bc00b8d01f.tar.gz
ayatana-indicator-sound-132bf8d107161102b63bf254056624bc00b8d01f.tar.bz2
ayatana-indicator-sound-132bf8d107161102b63bf254056624bc00b8d01f.zip
Remove unnecessary warning at start up - thx njpatel
-rw-r--r--src/indicator-sound.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 6c8f4e1..7f1f1d6 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -457,11 +457,14 @@ static void fetch_sink_availability_from_dbus()
return;
}
device_available = *available_input;
- if (device_available == FALSE)
+ if (device_available == FALSE){
update_state(STATE_SINKS_NONE);
g_debug("NO DEVICE AVAILABLE");
+ }
- gtk_widget_set_sensitive(volume_slider, device_available);
+ if (GTK_IS_WIDGET (volume_slider))
+ gtk_widget_set_sensitive(volume_slider, device_available);
+
g_free(available_input);
g_debug("IndicatorSound::fetch_sink_availability_from_dbus -> AVAILABILTY returned from dbus method is %i", device_available);