Index: trunk/src/libcschem/event.c =================================================================== --- trunk/src/libcschem/event.c (revision 4215) +++ trunk/src/libcschem/event.c (revision 4216) @@ -44,6 +44,7 @@ "cschev_prj_view_activated", "cschev_library_changed", + "cschev_buffer_copy_custom", "cschev_buffer_paste_custom" }; Index: trunk/src/libcschem/event.h =================================================================== --- trunk/src/libcschem/event.h (revision 4215) +++ trunk/src/libcschem/event.h (revision 4216) @@ -46,6 +46,7 @@ CSCH_EVENT_LIBRARY_CHANGED, /* called after a new entry is added to the library so that any open library window can be updated on the GUI; no args (sheet can be retrieved from hidlib) */ /* generated by the app, not libcschem */ + CSCH_EVENT_BUFFER_COPY_CUSTOM, /* called before an object is duplicated from sheet to buffer; args: (csch_chdr_t **obj, csch_sheet_t *buffer); *obj is the current object, initially the source object on the sheet; destination buffer the second arg */ CSCH_EVENT_BUFFER_PASTE_CUSTOM, /* called before an object is duplicated from buffer to sheet; args: (csch_chdr_t **obj); *obj is the current object, initially the source object in the buffer; destination sheet is in the hidlib arg */ CSCH_EVENT_last /* not a real event */