Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 8335) +++ trunk/src/board.c (revision 8336) @@ -158,13 +158,12 @@ int pcb_board_new_postproc(pcb_board_t *pcb, int use_defaults) { /* copy default settings */ - pcb_colors_from_settings(pcb); + pcb_layer_colors_from_conf(pcb); return 0; } -#warning TODO: indeed, remove this and all the board *color fields -void pcb_colors_from_settings(pcb_board_t *ptr) +void pcb_layer_colors_from_conf(pcb_board_t *ptr) { int i; Index: trunk/src/board.h =================================================================== --- trunk/src/board.h (revision 8335) +++ trunk/src/board.h (revision 8336) @@ -119,7 +119,7 @@ /* Perhaps PCB should internally just use the Settings colors? For now, * use this to set PCB colors so the config can reassign PCB colors. */ -void pcb_colors_from_settings(pcb_board_t *); +void pcb_layer_colors_from_conf(pcb_board_t *); /* counts the number of plated and unplated holes in the design within a given area of the board. To count for the whole board, pass NULL Index: trunk/src_plugins/lib_gtk_common/dlg_propedit.c =================================================================== --- trunk/src_plugins/lib_gtk_common/dlg_propedit.c (revision 8335) +++ trunk/src_plugins/lib_gtk_common/dlg_propedit.c (revision 8336) @@ -303,7 +303,7 @@ memset(&preview_pcb, 0, sizeof(preview_pcb)); preview_pcb.Data = pcb_buffer_new(&preview_pcb); preview_pcb.MaxWidth = preview_pcb.MaxHeight = PCB_MIL_TO_COORD(1000); - pcb_colors_from_settings(&preview_pcb); + pcb_layer_colors_from_conf(&preview_pcb); pcb_font_create_default(&preview_pcb); preview_pcb.ViaOn = 1; Index: trunk/src_plugins/lib_gtk_common/dlg_topwin.c =================================================================== --- trunk/src_plugins/lib_gtk_common/dlg_topwin.c (revision 8335) +++ trunk/src_plugins/lib_gtk_common/dlg_topwin.c (revision 8336) @@ -235,7 +235,7 @@ void pcb_gtk_tw_layer_buttons_color_update(pcb_gtk_topwin_t *tw) { pcb_gtk_layer_selector_update_colors(GHID_LAYER_SELECTOR(tw->layer_selector), get_layer_color); - pcb_colors_from_settings(PCB); + pcb_layer_colors_from_conf(PCB); } void ghid_layer_buttons_update(pcb_gtk_topwin_t *tw) Index: trunk/src_plugins/lib_gtk_hid/common.c =================================================================== --- trunk/src_plugins/lib_gtk_hid/common.c (revision 8335) +++ trunk/src_plugins/lib_gtk_hid/common.c (revision 8336) @@ -152,6 +152,6 @@ | pcb file. So this makes a moved layer change its color to reflect | the way it will be when the pcb is reloaded. */ - pcb_colors_from_settings(PCB); + pcb_layer_colors_from_conf(PCB); return; }