Index: trunk/src/action.c =================================================================== --- trunk/src/action.c (revision 928) +++ trunk/src/action.c (revision 929) @@ -8262,7 +8262,21 @@ free(str.Data); } +/* ---------------------------------------------------------------- */ +static const char replacefootprint_syntax[] = + "ReplaceFootprint()\n"; +static const char replacefootprint_help[] = "Replace the footprint of the selected component with the footprint in the buffer."; + +static int +ReplaceFootprint (int argc, char **argv, Coord x, Coord y) +{ + fprintf(stderr, "rp1\n"); + hid_parse_command("DoWindows(Library)"); + fprintf(stderr, "rp2\n"); +} + + /* --------------------------------------------------------------------------- */ HID_Action action_action_list[] = { @@ -8465,6 +8479,9 @@ {"ManagePlugins", 0, ManagePlugins, manageplugins_help, manageplugins_syntax} , + {"ReplaceFootprint", 0, ReplaceFootprint, + replacefootprint_help, replacefootprint_syntax} + , }; REGISTER_ACTIONS (action_action_list) Index: trunk/src/gpcb-menu.res =================================================================== --- trunk/src/gpcb-menu.res (revision 928) +++ trunk/src/gpcb-menu.res (revision 929) @@ -357,7 +357,7 @@ - {"Design changes (back annotation)" {"Swap nets on two selected pins" net(swap) a={"Shift-x" "Shiftx"}} - {"Replace footprint" net(swap) a={"Alt-f" "Altf"}} + {"Replace footprint" ReplaceFootprint() a={"Alt-Shift-f" "Alt Shiftf"}} } }