It isn't as bad as it looks. The im_menu stuff all relates to a special submenu, and 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@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer