mirror of https://github.com/GNOME/gimp.git
Add menu item for dynamics dockable (menu bits)
actions/actions.c actions/dialogs-actions.c dialogs/dialogs-constructors.c menus/menus.c menus/plug-in-menus.c pdb/makefile.msc ../etc/ps-menurc ../menus/Makefile.am ../menus/dialogs-menuitems.xml: add dynamics editor. ../menus/dynamics-editor-menu.xml: (new file)
This commit is contained in:
parent
6a574ab192
commit
03e91b64f4
|
@ -103,6 +103,9 @@ static const GimpActionFactoryEntry action_groups[] =
|
|||
{ "brush-editor", N_("Brush Editor"), GIMP_STOCK_BRUSH,
|
||||
brush_editor_actions_setup,
|
||||
brush_editor_actions_update },
|
||||
{ "dynamics-editor", N_("Dynamics Editor"), GIMP_STOCK_BRUSH,
|
||||
brush_editor_actions_setup,
|
||||
brush_editor_actions_update },
|
||||
{ "brushes", N_("Brushes"), GIMP_STOCK_BRUSH,
|
||||
brushes_actions_setup,
|
||||
brushes_actions_update },
|
||||
|
|
|
@ -124,6 +124,12 @@ const GimpStringActionEntry dialogs_dockable_actions[] =
|
|||
"gimp-brush-editor",
|
||||
GIMP_HELP_BRUSH_EDIT },
|
||||
|
||||
{ "dialogs-dynamics-editor", GIMP_STOCK_BRUSH,
|
||||
NC_("dialogs-action", "Dynamics Editor"), NULL,
|
||||
NC_("dialogs-action", "Open the dynamics editor"),
|
||||
"gimp-dynamics-editor",
|
||||
GIMP_HELP_BRUSH_EDIT },
|
||||
|
||||
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
|
||||
NC_("dialogs-action", "P_atterns"), "<control><shift>P",
|
||||
NC_("dialogs-action", "Open the patterns dialog"),
|
||||
|
|
|
@ -669,6 +669,15 @@ dialogs_brush_editor_get (GimpDialogFactory *factory,
|
|||
factory->menu_factory);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_dynamics_editor_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
gint view_size)
|
||||
{
|
||||
return gimp_brush_editor_new (context,
|
||||
factory->menu_factory);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_gradient_editor_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
|
|
|
@ -275,6 +275,18 @@ menus_init (Gimp *gimp,
|
|||
"brush-editor-menu.xml", NULL,
|
||||
NULL);
|
||||
|
||||
gimp_menu_factory_manager_register (global_menu_factory, "<DynamicsEditor>",
|
||||
"dynamics-editor",
|
||||
NULL,
|
||||
"/dynamics-editor-popup",
|
||||
"dynamics-editor-menu.xml", NULL,
|
||||
NULL);
|
||||
/*
|
||||
gimp_menu_factory_manager_register (global_menu_factory, "<DynamicsEditor>",
|
||||
"dynamics",
|
||||
NULL,
|
||||
NULL);
|
||||
*/
|
||||
gimp_menu_factory_manager_register (global_menu_factory, "<GradientEditor>",
|
||||
"gradient-editor",
|
||||
NULL,
|
||||
|
|
|
@ -317,11 +317,18 @@ plug_in_menus_menu_path_added (GimpPlugInProcedure *plug_in_proc,
|
|||
plug_in_menus_add_proc (manager, "/colormap-popup",
|
||||
plug_in_proc, menu_path);
|
||||
}
|
||||
|
||||
else if (! strcmp (manager->name, "<Brushes>"))
|
||||
{
|
||||
plug_in_menus_add_proc (manager, "/brushes-popup",
|
||||
plug_in_proc, menu_path);
|
||||
}
|
||||
|
||||
else if (! strcmp (manager->name, "<Dynamics>"))
|
||||
{
|
||||
plug_in_menus_add_proc (manager, "/dynamics-popup",
|
||||
plug_in_proc, menu_path);
|
||||
}
|
||||
else if (! strcmp (manager->name, "<Gradients>"))
|
||||
{
|
||||
plug_in_menus_add_proc (manager, "/gradients-popup",
|
||||
|
|
|
@ -38,6 +38,7 @@ OBJECTS = \
|
|||
internal-procs.obj \
|
||||
brush-cmds.obj \
|
||||
brushes-cmds.obj \
|
||||
dynamics-cmds.obj \
|
||||
buffer-cmds.obj \
|
||||
channel-cmds.obj \
|
||||
color-cmds.obj \
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
(gtk_accel_path "<Actions>/layers/layers-alpha-selection-replace" "<Alt>a")
|
||||
(gtk_accel_path "<Actions>/dialogs/dialogs-layers" "F7")
|
||||
(gtk_accel_path "<Actions>/dialogs/dialogs-brushes" "")
|
||||
(gtk_accel_path "<Actions>/dialogs/dialogs-dynamics" "")
|
||||
(gtk_accel_path "<Actions>/view/view-info-window" "F8")
|
||||
(gtk_accel_path "<Actions>/layers/layers-duplicate" "<Control>j")
|
||||
(gtk_accel_path "<Actions>/dialogs/dialogs-channels" "<Shift>F7")
|
||||
|
|
|
@ -11,6 +11,7 @@ menudata_built_files = $(menudata_in_files:.xml.in=.xml)
|
|||
menudata_DATA = \
|
||||
$(menudata_built_files) \
|
||||
brush-editor-menu.xml \
|
||||
dynamics-editor-menu.xml \
|
||||
brushes-menu.xml \
|
||||
buffers-menu.xml \
|
||||
channels-menu.xml \
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<separator />
|
||||
<menuitem action="dialogs-colors" />
|
||||
<menuitem action="dialogs-brushes" />
|
||||
<menuitem action="dialogs-dynamics" />
|
||||
<menuitem action="dialogs-patterns" />
|
||||
<menuitem action="dialogs-gradients" />
|
||||
<menuitem action="dialogs-palettes" />
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
|
||||
|
||||
<ui>
|
||||
<popup action="dynamics-editor-popup">
|
||||
<menuitem action="dynamics-editor-edit-active" />
|
||||
</popup>
|
||||
</ui>
|
Loading…
Reference in New Issue