~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/widgets/sp-color-selector.cpp

  • Committer: kidproto
  • Date: 2006-08-25 07:03:19 UTC
  • Revision ID: kidproto@users.sourceforge.net-20060825070319-49nso3fdlwuveifv
peeled back the gboolean code as it hit on some complexity theory principles...
need to rethink and incrementally change gbooleans to bools

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
    return type;
172
172
}
173
173
 
174
 
bool ColorSelector::setColorspace( SPColorSpaceType colorspace )
 
174
gboolean ColorSelector::setColorspace( SPColorSpaceType colorspace )
175
175
{
176
176
    return false;
177
177
}
262
262
}
263
263
 
264
264
// Called from subclasses to update color and broadcast if needed
265
 
void ColorSelector::_updateInternals( const SPColor& color, gfloat alpha, bool held )
 
265
void ColorSelector::_updateInternals( const SPColor& color, gfloat alpha, gboolean held )
266
266
{
267
267
    g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
268
 
    bool colorDifferent = ( !sp_color_is_close( &color, &_color, _epsilon )
 
268
    gboolean colorDifferent = ( !sp_color_is_close( &color, &_color, _epsilon )
269
269
                                || ( fabs((_alpha) - (alpha)) >= _epsilon ) );
270
270
 
271
 
    bool grabbed = held && !_held;
272
 
    bool released = !held && _held;
 
271
    gboolean grabbed = held && !_held;
 
272
    gboolean released = !held && _held;
273
273
 
274
274
    // Store these before emmiting any signals
275
275
    _held = held;