Index: trunk/src/event.h =================================================================== --- trunk/src/event.h (revision 8620) +++ trunk/src/event.h (revision 8621) @@ -37,6 +37,7 @@ PCB_EVENT_ROUTE_STYLES_CHANGED, /* called after any route style change (used to be the RouteStylesChanged action) */ PCB_EVENT_NETLIST_CHANGED, /* called after any netlist change (used to be the NetlistChanged action) */ PCB_EVENT_LAYERS_CHANGED, /* called after layers or layer groups change (used to be the LayersChanged action) */ + PCB_EVENT_LAYERVIS_CHANGED, /* called after the visibility of layers has changed */ PCB_EVENT_LIBRARY_CHANGED, /* called after a change in the footprint lib (used to be the LibraryChanged action) */ PCB_EVENT_FONT_CHANGED, /* called when a font has changed; argument is the font ID */ Index: trunk/src/find_drc.c =================================================================== --- trunk/src/find_drc.c (revision 8620) +++ trunk/src/find_drc.c (revision 8621) @@ -335,7 +335,7 @@ drcerr_count = 0; pcb_layervis_save_stack(); pcb_layervis_reset_stack(); - pcb_event(PCB_EVENT_LAYERS_CHANGED, NULL); + pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); pcb_conn_lookup_init(); TheFlag = PCB_FLAG_FOUND | PCB_FLAG_DRC | PCB_FLAG_SELECTED; @@ -690,7 +690,7 @@ pcb_layervis_restore_stack(); - pcb_event(PCB_EVENT_LAYERS_CHANGED, NULL); + pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); pcb_gui->invalidate_all(); if (nopastecnt > 0) { Index: trunk/src/layer_vis.c =================================================================== --- trunk/src/layer_vis.c (revision 8620) +++ trunk/src/layer_vis.c (revision 8621) @@ -118,7 +118,7 @@ done:; /* update control panel and exit */ - pcb_event(PCB_EVENT_LAYERS_CHANGED, NULL); + pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); return (changed); } @@ -226,7 +226,7 @@ } } if (chg) - pcb_event(PCB_EVENT_LAYERS_CHANGED, NULL); + pcb_event(PCB_EVENT_LAYERVIS_CHANGED, NULL); in = 0; } Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 8620) +++ trunk/src_plugins/hid_lesstif/main.c (revision 8621) @@ -3793,6 +3793,7 @@ pcb_event_bind(PCB_EVENT_NETLIST_CHANGED, LesstifNetlistChanged, NULL, lesstif_cookie); pcb_event_bind(PCB_EVENT_ROUTE_STYLES_CHANGED, LesstifRouteStylesChanged, NULL, lesstif_cookie); pcb_event_bind(PCB_EVENT_LAYERS_CHANGED, LesstifLayersChanged, NULL, lesstif_cookie); + pcb_event_bind(PCB_EVENT_LAYERVIS_CHANGED, LesstifLayersChanged, NULL, lesstif_cookie); pcb_event_bind(PCB_EVENT_LIBRARY_CHANGED, LesstifLibraryChanged, NULL, lesstif_cookie); pcb_event_bind(PCB_EVENT_BUSY, LesstifBusy, NULL, lesstif_cookie); Index: trunk/src_plugins/lib_gtk_hid/glue_event.c =================================================================== --- trunk/src_plugins/lib_gtk_hid/glue_event.c (revision 8620) +++ trunk/src_plugins/lib_gtk_hid/glue_event.c (revision 8621) @@ -78,6 +78,7 @@ pcb_event_bind(PCB_EVENT_NETLIST_CHANGED, GhidNetlistChanged, NULL, cookie); pcb_event_bind(PCB_EVENT_ROUTE_STYLES_CHANGED, RouteStylesChanged, NULL, cookie); pcb_event_bind(PCB_EVENT_LAYERS_CHANGED, ghid_LayersChanged, NULL, cookie); + pcb_event_bind(PCB_EVENT_LAYERVIS_CHANGED, ghid_LayersChanged, NULL, cookie); pcb_event_bind(PCB_EVENT_BUSY, ghid_Busy, NULL, cookie); pcb_event_bind(PCB_EVENT_GUI_SYNC, ghid_gui_sync, NULL, cookie); }