From 2c195d2530ba1e0d0a718cc3b20433d832abc5b0 Mon Sep 17 00:00:00 2001 From: joncruz Date: Tue, 25 Sep 2007 03:08:07 +0000 Subject: [PATCH] Hide sliders when not valid --- src/widgets/sp-color-icc-selector.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/widgets/sp-color-icc-selector.cpp b/src/widgets/sp-color-icc-selector.cpp index 23294d61e..957bafbb1 100644 --- a/src/widgets/sp-color-icc-selector.cpp +++ b/src/widgets/sp-color-icc-selector.cpp @@ -632,6 +632,13 @@ void ColorICCSelector::_updateSliders() } } } + } else { + for ( guint i = 0; i < _fooCount; i++ ) { + gtk_widget_hide( _fooLabel[i] ); + gtk_widget_hide( _fooSlider[i] ); + gtk_widget_hide( _fooBtn[i] ); + gtk_adjustment_set_value( _fooAdj[i], 0.0 ); + } } #endif // ENABLE_LCMS -- 2.30.2