Index: trunk/src/layer.c =================================================================== --- trunk/src/layer.c (revision 19123) +++ trunk/src/layer.c (revision 19124) @@ -50,7 +50,7 @@ {"fab", PCB_LYT_VIRTUAL + 5, PCB_LYT_VIRTUAL | PCB_LYT_LOGICAL, "fab", F_fab }, {"plated-drill", PCB_LYT_VIRTUAL + 6, PCB_LYT_VIRTUAL | PCB_LYT_PDRILL, "plated", F_plated }, {"unplated-drill", PCB_LYT_VIRTUAL + 7, PCB_LYT_VIRTUAL | PCB_LYT_UDRILL, "unplated", F_unplated }, - {"csect", PCB_LYT_VIRTUAL + 8, PCB_LYT_VIRTUAL | PCB_LYT_CSECT | PCB_LYT_LOGICAL, "csect", F_csect }, + {"csect", PCB_LYT_VIRTUAL + 8, PCB_LYT_VIRTUAL | PCB_LYT_LOGICAL, "csect", F_csect }, {"dialog", PCB_LYT_VIRTUAL + 9, PCB_LYT_VIRTUAL | PCB_LYT_DIALOG | PCB_LYT_LOGICAL | PCB_LYT_NOEXPORT, NULL, -1 }, { NULL, 0 }, }; @@ -88,7 +88,6 @@ { PCB_LYT_INVIS, 2, "invis" }, { PCB_LYT_PDRILL, 2, "plateddrill" }, { PCB_LYT_UDRILL, 2, "unplateddrill" }, - { PCB_LYT_CSECT, 2, "cross-section" }, { PCB_LYT_SUBSTRATE,2,"substrate" }, { PCB_LYT_MISC, 2, "misc" }, { PCB_LYT_DOC, 2, "doc" }, Index: trunk/src/layer.h =================================================================== --- trunk/src/layer.h (revision 19123) +++ trunk/src/layer.h (revision 19124) @@ -54,7 +54,6 @@ PCB_LYT_PDRILL = 0x00020000, /* (virtual) plated drills (affects all physical layers) */ PCB_LYT_UDRILL = 0x00040000, /* (virtual) unplated drills (affects all physical layers) */ PCB_LYT_UI = 0x00080000, /* (virtual) user interface drawings (feature plugins use this for displaying states or debug info) */ - PCB_LYT_CSECT = 0x00100000, /* (virtual) cross-section drawing (displaying layer groups) */ PCB_LYT_SUBSTRATE= 0x00200000, /* substrate / insulator */ PCB_LYT_MISC = 0x00400000, /* misc (for internal use) */ PCB_LYT_DIALOG = 0x00800000, /* (virtual) dialog box drawings (e.g. font selector) - not to be interpreted in the board space */ Index: trunk/src_plugins/hid_lesstif/dlg_preview.c =================================================================== --- trunk/src_plugins/hid_lesstif/dlg_preview.c (revision 19123) +++ trunk/src_plugins/hid_lesstif/dlg_preview.c (revision 19124) @@ -285,7 +285,7 @@ pcb_layer_id_t lid; if (layergrp_edit != NULL) return; - if (pcb_layer_list(PCB, PCB_LYT_CSECT, &lid, 1) > 0) { + if (pcb_layer_listp(PCB, PCB_LYT_VIRTUAL, &lid, 1, F_csect, NULL) > 0) { layergrp_edit = lesstif_show_layer(lid, "Layer groups", 0); layergrp_edit->mouse_ev = pcb_stub_draw_csect_mouse_ev; layergrp_edit->pre_close = layergrp_pre_close; Index: trunk/src_plugins/lib_gtk_config/gui-config.c =================================================================== --- trunk/src_plugins/lib_gtk_config/gui-config.c (revision 19123) +++ trunk/src_plugins/lib_gtk_config/gui-config.c (revision 19124) @@ -59,6 +59,7 @@ #include "fptr_cast.h" #include "safe_fs.h" #include "tool.h" +#include "funchash_core.h" #include #include "gtk_conf_list.h" @@ -1092,7 +1093,7 @@ /* -- Layer stack tab */ vbox = ghid_notebook_page(tabs, _("Physical layer stack"), 0, 6); - if (pcb_layer_list(PCB, PCB_LYT_CSECT, &lid, 1) > 0) { + if (pcb_layer_listp(PCB, PCB_LYT_VIRTUAL, &lid, 1, F_csect, NULL) > 0) { pcb_gtk_preview_t *p; prv = pcb_gtk_preview_layer_new(com, com->init_drawing_widget, com->preview_expose, lid); gtk_box_pack_start(GTK_BOX(vbox), prv, TRUE, TRUE, 0);