Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 1464) +++ trunk/src_plugins/hid_lesstif/main.c (revision 1465) @@ -310,7 +310,8 @@ return 0; } -static void do_color(char *value, char *which) +#warning rename this: prefix! +void do_color(char *value, char *which) { XColor color; if (XParseColor(display, colormap, value, &color)) Index: trunk/src_plugins/hid_lesstif/menu.c =================================================================== --- trunk/src_plugins/hid_lesstif/menu.c (revision 1464) +++ trunk/src_plugins/hid_lesstif/menu.c (revision 1465) @@ -843,14 +843,16 @@ lht_node_t *act; n = 0; + v = hid_cfg_menu_field_str(node, MF_FOREGROUND); + if (v != NULL) + do_color(v, XmNforeground); + + v = hid_cfg_menu_field_str(node, MF_BACKGROUND); + if (v != NULL) + do_color(v, XmNbackground); + #warning TODO: check if we should reenable this #if 0 - if ((v = resource_value(node->v[i].subres, "fg"))) { - do_color(v, XmNforeground); - } - if ((v = resource_value(node->v[i].subres, "bg"))) { - do_color(v, XmNbackground); - } if ((v = resource_value(node->v[i].subres, "font"))) { XFontStruct *fs = XLoadQueryFont(display, v); if (fs) {