Index: trunk/src/hid.h =================================================================== --- trunk/src/hid.h (revision 26789) +++ trunk/src/hid.h (revision 26790) @@ -433,7 +433,7 @@ void (*dock_leave)(pcb_hid_t *hid, pcb_hid_dad_subdialog_t *sub); /* Something to alert the user. */ - void (*beep)(void); + void (*beep)(pcb_hid_t *hid); void (*edit_attributes)(const char *owner, pcb_attribute_list_t *attrlist); Index: trunk/src/hid_nogui.c =================================================================== --- trunk/src/hid_nogui.c (revision 26789) +++ trunk/src/hid_nogui.c (revision 26790) @@ -370,7 +370,7 @@ CRASH("attr_dlg_dlg_property"); } -static void nogui_beep(void) +static void nogui_beep(pcb_hid_t *hid) { putchar(7); fflush(stdout); Index: trunk/src/tool_line.c =================================================================== --- trunk/src/tool_line.c (revision 26789) +++ trunk/src/tool_line.c (revision 26790) @@ -106,7 +106,7 @@ case PCB_CH_STATE_FIRST: /* first point */ TODO("subc: this should work on heavy terminals too!") if (PCB->RatDraw && pcb_search_screen(pcb_crosshair.X, pcb_crosshair.Y, PCB_OBJ_PSTK | PCB_OBJ_SUBC_PART, &ptr1, &ptr1, &ptr1) == PCB_OBJ_VOID) { - pcb_gui->beep(); + pcb_gui->beep(pcb_gui); break; } if (conf_core.editor.auto_drc) { Index: trunk/src_plugins/export_oldconn/oldconn.c =================================================================== --- trunk/src_plugins/export_oldconn/oldconn.c (revision 26789) +++ trunk/src_plugins/export_oldconn/oldconn.c (revision 26790) @@ -204,7 +204,7 @@ PCB_END_LOOP; if (conf_core.editor.beep_when_finished) - pcb_gui->beep(); + pcb_gui->beep(pcb_gui); if (do_select) { pcb_undo_inc_serial(); @@ -217,7 +217,7 @@ { pcb_print_subc_conns(f, subc); if (conf_core.editor.beep_when_finished) - pcb_gui->beep(); + pcb_gui->beep(pcb_gui); } /* Find all connections from all terminals of all subcircuits and print in f. */ @@ -231,7 +231,7 @@ PCB_END_LOOP; if (conf_core.editor.beep_when_finished) - pcb_gui->beep(); + pcb_gui->beep(pcb_gui); pcb_hid_redraw(PCB); } Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 26789) +++ trunk/src_plugins/hid_lesstif/main.c (revision 26790) @@ -2836,7 +2836,7 @@ #include "wt_preview.c" -static void lesstif_beep(void) +static void lesstif_beep(pcb_hid_t *hid) { putchar(7); fflush(stdout); Index: trunk/src_plugins/lib_gtk_common/glue_hid.c =================================================================== --- trunk/src_plugins/lib_gtk_common/glue_hid.c (revision 26789) +++ trunk/src_plugins/lib_gtk_common/glue_hid.c (revision 26790) @@ -300,7 +300,7 @@ return ghid_attr_dlg_new(ghidgui, id, attrs, n_attrs, results, title, caller_data, modal, button_cb, defx, defy, minx, miny); } -static void ghid_beep() +static void ghid_beep(pcb_hid_t *hid) { gdk_beep(); } Index: trunk/src_plugins/loghid/hid-logger.c =================================================================== --- trunk/src_plugins/loghid/hid-logger.c (revision 26789) +++ trunk/src_plugins/loghid/hid-logger.c (revision 26790) @@ -190,10 +190,10 @@ delegatee_->fill_rect(gc, x1, y1, x2, y2); } -static void log_beep() +static void log_beep(pcb_hid_t *hid) { pcb_fprintf(out_, "beep(); BEEEP .... BEEEEEEEP\n"); - delegatee_->beep(); + delegatee_->beep(hid); } void create_log_hid(FILE *log_out, pcb_hid_t *loghid, pcb_hid_t *delegatee) Index: trunk/src_plugins/oldactions/oldactions.c =================================================================== --- trunk/src_plugins/oldactions/oldactions.c (revision 26789) +++ trunk/src_plugins/oldactions/oldactions.c (revision 26790) @@ -127,7 +127,7 @@ static fgw_error_t pcb_act_Bell(fgw_arg_t *res, int argc, fgw_arg_t *argv) { - pcb_gui->beep(); + pcb_gui->beep(pcb_gui); PCB_ACT_IRES(0); return 0; }