Author: matt
Date: 2011-09-28 12:54:05 -0700 (Wed, 28 Sep 2011)
New Revision: 9076
Log:
STR 2710: limited scheme names to known schemes.
Modified:
branches/branch-1.3/src/Fl_get_system_colors.cxx
Modified: branches/branch-1.3/src/Fl_get_system_colors.cxx
===================================================================
--- branches/branch-1.3/src/Fl_get_system_colors.cxx 2011-09-28 13:37:32 UTC
(rev 9075)
+++ branches/branch-1.3/src/Fl_get_system_colors.cxx 2011-09-28 19:54:05 UTC
(rev 9076)
@@ -291,7 +291,9 @@
if (s) {
if (!strcasecmp(s, "none") || !strcasecmp(s, "base") || !*s) s = 0;
- else s = strdup(s);
+ else if (!strcasecmp(s, "gtk+")) s = strdup("gtk+");
+ else if (!strcasecmp(s, "plastic")) s = strdup("plastic");
+ else s = 0;
}
if (scheme_) free((void*)scheme_);
scheme_ = s;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit