mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
88dedcc424
2006-06-16 Michael Natterer <mitch@gimp.org> Allow plug-ins to register in <Layers>, <Channels>, <Vectors> and <ColormapEditor>: * app/pdb/gimppluginprocedure.c (gimp_plug_in_procedure_add_menu_path): added the argument type checks for the new locations. Factored out duplicated code. * app/menus/menus.c (menus_init): add the "plug-in" action group to the resp. UI managers. * app/menus/plug-in-menus.c (plug_in_menus_menu_path_added): support them here too. * app/widgets/gimpimageeditor.[ch] * app/widgets/gimpitemtreeview.[ch]: added get_image() functions. * app/actions/plug-in-commands.c: added new utility functions which collect plug-in arguments from GimpImageEditor and GimpItemTreeView widgets. * menus/channels-menu.xml * menus/colormap-editor-menu.xml * menus/layers-menu.xml * menus/vectors-menu.xml: added separators. * menus/image-menu.xml.in: added a "Colormap" placeholder in Colors/Map * plug-ins/common/colormap-remap.c (query): register a menu entry in <ColormapEditor> and moved the existing one to the "Colormap" placeholder. Also register an icon to make this menu item clearly distinct from the others in that menu. Unrelated: * plug-ins/common/colormap-remap.c (run): cleaned up quite a bit. Fixed last-vals code and simplified map handling. (remap_swap): removed, folded into run(). (remap_dialog): use the passed map to initialize the dialog so it starts with the last-vals. Tweaked layout to have 16 columns and simplified cell renderer creation.
30 lines
1,016 B
XML
30 lines
1,016 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
|
|
|
|
<ui>
|
|
<popup action="vectors-popup">
|
|
<menuitem action="vectors-path-tool" />
|
|
<menuitem action="vectors-edit-attributes" />
|
|
<separator />
|
|
<menuitem action="vectors-new" />
|
|
<menuitem action="vectors-raise" />
|
|
<menuitem action="vectors-lower" />
|
|
<menuitem action="vectors-duplicate" />
|
|
<menuitem action="vectors-delete" />
|
|
<menuitem action="vectors-merge-visible" />
|
|
<separator />
|
|
<menuitem action="vectors-selection-replace" />
|
|
<menuitem action="vectors-selection-add" />
|
|
<menuitem action="vectors-selection-subtract" />
|
|
<menuitem action="vectors-selection-intersect" />
|
|
<menuitem action="vectors-selection-to-vectors" />
|
|
<menuitem action="vectors-stroke" />
|
|
<separator />
|
|
<menuitem action="vectors-copy" />
|
|
<menuitem action="vectors-paste" />
|
|
<menuitem action="vectors-export" />
|
|
<menuitem action="vectors-import" />
|
|
<separator />
|
|
</popup>
|
|
</ui>
|