Code

peeled back the gboolean code as it hit on some complexity theory principles...
[inkscape.git] / src / widgets / sp-color-selector.cpp
index b4af6bf869d8dfa5d61663a292ca886817a95dcf..1532eddd74bc6516840136c358676a7d32af07ed 100644 (file)
@@ -171,7 +171,7 @@ SPColorSpaceType ColorSelector::getColorspace() const
     return type;
 }
 
-bool ColorSelector::setColorspace( SPColorSpaceType colorspace )
+gboolean ColorSelector::setColorspace( SPColorSpaceType colorspace )
 {
     return false;
 }
@@ -262,14 +262,14 @@ void ColorSelector::_released()
 }
 
 // Called from subclasses to update color and broadcast if needed
-void ColorSelector::_updateInternals( const SPColor& color, gfloat alpha, bool held )
+void ColorSelector::_updateInternals( const SPColor& color, gfloat alpha, gboolean held )
 {
     g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
-    bool colorDifferent = ( !sp_color_is_close( &color, &_color, _epsilon )
+    gboolean colorDifferent = ( !sp_color_is_close( &color, &_color, _epsilon )
                                 || ( fabs((_alpha) - (alpha)) >= _epsilon ) );
 
-    bool grabbed = held && !_held;
-    bool released = !held && _held;
+    gboolean grabbed = held && !_held;
+    gboolean released = !held && _held;
 
     // Store these before emmiting any signals
     _held = held;