Re: How to edit context menu?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux