Thanks to fabien for protect FLTK from scheme GRAD1 (gradient version 1)
Fabien do you like books by Carlos Castaneda ?.. :)
Or may be it is national discrimination ?
[CODE=cpp]
//
// "$Id: Fl_get_system_colors.cxx 9369 2012-04-21 17:40:07Z fabien $"
//
..
if (s) {
if (!fl_ascii_strcasecmp(s, "none") || !fl_ascii_strcasecmp(s, "base") ||
!*s) s = 0;
else if (!fl_ascii_strcasecmp(s, "gtk+")) s = strdup("gtk+");
else if (!fl_ascii_strcasecmp(s, "plastic")) s = strdup("plastic");
else s = 0;
}
if (scheme_) free((void*)scheme_);
scheme_ = s;
// Save the new scheme in the FLTK_SCHEME env var so that child processes
// inherit it...
static char e[1024];
strcpy(e,"FLTK_SCHEME=");
if (s) strlcat(e,s,sizeof(e));
putenv(e);
// Load the scheme...
return reload_scheme();
..
[/CODE]
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk