you can discard it. The rest you can replicate as is (with the obvious changes).
Here is a quick summary of how to create a context menu for a tool:
1) Create a get_popup handler similar to gimp_text_tool_get_popup.
2) Create menu actions by creating a file similar to app/actions/text-tool-actions.c.
3) Create menu commands by creating a file similar to app/actions/text-tool-commands.c.
4) Define the menu structure by creating a file similar to menus/text-tool-menu.xml.
It should be possible to do most of this without a very deep understanding of the code.
-- Bill
_______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer