I am facing to problems:
1) How to distinguish that a CMYK based color-space is selected ?
I am accessing the Colorspace through the ColorProfile object like this-
if( asICColorSpaceSig(newProf->getColorSpace() ) == cmsSigCmykData ) {
_cmsCMYK = TRUE ;
}
else {
_cmsCMYK = FALSE ;
}
I have placed this snippet in appropriate places (_setProfile function, _profileChanged function etc ). But nothing seems to really work . Am I using the correct equality condition ? Can you help in this ?
[ _cmsCMYK is a bitfield [ gboolean _cmsCMYK : 1 ] added to the sp-icc-color-selector.h file or Color Selector class as a flag to keep track of only CMYK color spaces.]
2) How to setup a GtkEntryBuffer for the GtkEntries I have drwan for the artist ?
I wrote a small function:
char* getAdjustmentVal (GtkAdjustment *_adj)
{
gdouble _val=gtk_adjustment_get_value (_adj);
_val=100.00*_val;
guint _corrVal= _val;
char* arr;
itoa( _corrVal, arr, 10 );
return arr;
}