Index: trunk/src/board.c =================================================================== --- trunk/src/board.c (revision 33486) +++ trunk/src/board.c (revision 33487) @@ -379,6 +379,9 @@ if (old != New) rnd_event(&pcb->hidlib, RND_EVENT_BOARD_META_CHANGED, NULL); + + if (New) + rnd_event(&pcb->hidlib, PCB_EVENT_BOARD_EDITED, NULL); } Index: trunk/src/event.c =================================================================== --- trunk/src/event.c (revision 33486) +++ trunk/src/event.c (revision 33487) @@ -36,6 +36,7 @@ "pcbev_layervis_changed", "pcbev_library_changed", "pcbev_font_changed", + "pcbev_board_edited", "pcbev_undo_post", "pcbev_rubber_reset", "pcbev_rubber_move", Index: trunk/src/event.h =================================================================== --- trunk/src/event.h (revision 33486) +++ trunk/src/event.h (revision 33487) @@ -39,6 +39,7 @@ 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 */ + PCB_EVENT_BOARD_EDITED, /* called after any edit on the board */ PCB_EVENT_UNDO_POST, /* called after an undo/redo operation; argument is an integer pcb_undo_ev_t */ Index: trunk/src_plugins/show_netnames/show_netnames.c =================================================================== --- trunk/src_plugins/show_netnames/show_netnames.c (revision 33486) +++ trunk/src_plugins/show_netnames/show_netnames.c (revision 33487) @@ -28,9 +28,9 @@ #include #include -#include #include "board.h" +#include "event.h" #include #include "menu_internal.c" @@ -38,7 +38,7 @@ static void show_netnames_brd_chg(rnd_hidlib_t *hidlib, void *user_data, int argc, rnd_event_arg_t argv[]) { - rnd_trace("show_netnames!"); + rnd_trace("show_netnames!\n"); } int pplg_check_ver_show_netnames(int ver_needed) { return 0; } @@ -54,7 +54,7 @@ { RND_API_CHK_VER; - rnd_event_bind(RND_EVENT_BOARD_META_CHANGED, show_netnames_brd_chg, NULL, pcb_show_netnames_cookie); + rnd_event_bind(PCB_EVENT_BOARD_EDITED, show_netnames_brd_chg, NULL, pcb_show_netnames_cookie); rnd_event_bind(RND_EVENT_BOARD_CHANGED, show_netnames_brd_chg, NULL, pcb_show_netnames_cookie); rnd_hid_menu_load(rnd_gui, NULL, pcb_show_netnames_cookie, 150, NULL, 0, show_netnames_menu, "plugin: show_netnames");