Re: Documentation about menu hooks

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

 



bart@xxxxxxxxxxxx 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
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list




[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