From 132bf8d107161102b63bf254056624bc00b8d01f Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Wed, 14 Apr 2010 17:13:43 +0100 Subject: Remove unnecessary warning at start up - thx njpatel --- src/indicator-sound.c | 7 +++++-- 1 file 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); -- cgit v1.2.3