Re: [Gimp-developer] Documentation about menu hooks



bart neeneenee de writes:
is there a documentation about menu hooks in GIMP? Is there a
listing at the source code?

I tired to try out how to get my python plugins in the right place.
So i'd like to do
a visual documentation for any developer. I attached an example on this mail.

I don't think I've seen formal documentation, but if you look in the
source, in the menus/ subdirectory are all the menu definitions in XML.

For hooks I think you're talking about pseudo-submenus like
"<Image>/File/Save/", where Save/ isn't an actual menu item, just
a place in the menus where you'd want to group all the actions
related to saving. In image-menu.xml I see things like
<placeholder name="Open">, <placeholder name="Save"> and so forth.
So if you take all the "<placeholder" lines from all the menus/*.xml
files, I think you'll get all the placeholders in all GIMP menus.

On Linux, you can get the whole list with a command like
  grep '<placeholder' menus/*.xml

Does that help?

        ...Akkana


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