Index: trunk/src_plugins/lib_hid_common/lib_hid_common.c =================================================================== --- trunk/src_plugins/lib_hid_common/lib_hid_common.c (revision 29929) +++ trunk/src_plugins/lib_hid_common/lib_hid_common.c (revision 29930) @@ -59,6 +59,17 @@ pcb_dad_spin_update_global_coords(); } +const char pcb_acts_Command[] = "Command()"; +const char pcb_acth_Command[] = "Displays the command line input in the status area."; +/* DOC: command */ +fgw_error_t pcb_act_Command(fgw_arg_t *res, int argc, fgw_arg_t *argv) +{ + PCB_GUI_NOGUI(); + pcb_gui->open_command(pcb_gui); + PCB_ACT_IRES(0); + return 0; +} + static const char pcb_acth_gui[] = "Intenal: GUI frontend action. Do not use directly."; pcb_action_t hid_common_action_list[] = { @@ -67,6 +78,7 @@ {"Center", pcb_act_Center, pcb_acth_Center, pcb_acts_Center}, {"Scroll", pcb_act_Scroll, pcb_acth_Scroll, pcb_acts_Scroll}, {"LogDialog", pcb_act_LogDialog, pcb_acth_LogDialog, pcb_acts_LogDialog}, + {"Command", pcb_act_Command, pcb_acth_Command, pcb_acts_Command}, {"gui_PromptFor", pcb_act_gui_PromptFor, pcb_acth_gui, NULL}, {"gui_MessageBox", pcb_act_gui_MessageBox, pcb_acth_gui, NULL}, {"gui_FallbackColorPick", pcb_act_gui_FallbackColorPick, pcb_acth_gui, NULL}, Index: trunk/src_plugins/lib_hid_pcbui/act.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/act.c (revision 29929) +++ trunk/src_plugins/lib_hid_pcbui/act.c (revision 29930) @@ -183,17 +183,6 @@ return 0; } -const char pcb_acts_Command[] = "Command()"; -const char pcb_acth_Command[] = "Displays the command line input in the status area."; -/* DOC: command */ -fgw_error_t pcb_act_Command(fgw_arg_t *res, int argc, fgw_arg_t *argv) -{ - PCB_GUI_NOGUI(); - pcb_gui->open_command(pcb_gui); - PCB_ACT_IRES(0); - return 0; -} - const char pcb_acts_Popup[] = "Popup(MenuName, [obj-type])"; const char pcb_acth_Popup[] = "Bring up the popup menu specified by MenuName, optionally modified with the object type under the cursor.\n"; /* DOC: popup.html */ Index: trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c =================================================================== --- trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c (revision 29929) +++ trunk/src_plugins/lib_hid_pcbui/lib_hid_pcbui.c (revision 29930) @@ -67,7 +67,6 @@ {"Zoom", pcb_act_Zoom, pcb_acth_Zoom, pcb_acts_Zoom}, {"ZoomTo", pcb_act_Zoom, pcb_acth_Zoom, pcb_acts_Zoom}, {"SwapSides", pcb_act_SwapSides, pcb_acth_SwapSides, pcb_acts_SwapSides}, - {"Command", pcb_act_Command, pcb_acth_Command, pcb_acts_Command}, {"Popup", pcb_act_Popup, pcb_acth_Popup, pcb_acts_Popup}, {"LayerHotkey", pcb_act_LayerHotkey, pcb_acth_LayerHotkey, pcb_acts_LayerHotkey} };