From: joncruz Date: Tue, 25 Sep 2007 03:08:07 +0000 (+0000) Subject: Hide sliders when not valid X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2c195d2530ba1e0d0a718cc3b20433d832abc5b0;p=inkscape.git Hide sliders when not valid --- 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