Code

Hide sliders when not valid
authorjoncruz <joncruz@users.sourceforge.net>
Tue, 25 Sep 2007 03:08:07 +0000 (03:08 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Tue, 25 Sep 2007 03:08:07 +0000 (03:08 +0000)
src/widgets/sp-color-icc-selector.cpp

index 23294d61e9e794512c63d5118d85947b94213c3d..957bafbb1f250001e5b0252fa0d88ff43c382f3f 100644 (file)
@@ -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