[GNC] User-defined commands

Helmut Eller eller.helmut at gmail.com
Wed Nov 30 02:54:37 EST 2022


On Tue, Nov 29 2022, john wrote:
>     Is this possible?  Is it documented somewhere?
>
>
> Yes, it's possible. No, it's not documented.
>
> See the definition of gnc:add-report-template-menu-item at https://
> github.com/Gnucash/gnucash/blob/maint/gnucash/gnome/report-menus.scm#
> L42 for example code. It's all specialized for report templates so
> you'll have to copy and modify a lot of code. Note the convention
> that functions starting with gnc: are written in Scheme and those
> starting with gnc- or xacc are written in C and exposed to Guile via
> SWIG.

Thank you.  With this I was able to add a command to the Tools
menu. (See the attached file, in case somebody is interested.)

Can the same strategy also be used to add items to the popup menu?

I'm mostly asking if I should look harder or if it is not possible
because there are no Scheme bindings for the popup menu.  Similarly, is
there a Scheme binding for
gnc_plugin_page_account_tree_get_current_account?

Helmut

-------------- next part --------------
A non-text attachment was scrubbed...
Name: repl.scm
Type: text/x-scheme
Size: 1851 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20221130/d1619124/attachment.bin>


More information about the gnucash-user mailing list