mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
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
10 changed files with 50 additions and 1 deletions
|
@ -103,6 +103,9 @@ static const GimpActionFactoryEntry action_groups[] =
|
||||||
{ "brush-editor", N_("Brush Editor"), GIMP_STOCK_BRUSH,
|
{ "brush-editor", N_("Brush Editor"), GIMP_STOCK_BRUSH,
|
||||||
brush_editor_actions_setup,
|
brush_editor_actions_setup,
|
||||||
brush_editor_actions_update },
|
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", N_("Brushes"), GIMP_STOCK_BRUSH,
|
||||||
brushes_actions_setup,
|
brushes_actions_setup,
|
||||||
brushes_actions_update },
|
brushes_actions_update },
|
||||||
|
|
|
@ -123,6 +123,12 @@ const GimpStringActionEntry dialogs_dockable_actions[] =
|
||||||
NC_("dialogs-action", "Open the brush editor"),
|
NC_("dialogs-action", "Open the brush editor"),
|
||||||
"gimp-brush-editor",
|
"gimp-brush-editor",
|
||||||
GIMP_HELP_BRUSH_EDIT },
|
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,
|
{ "dialogs-patterns", GIMP_STOCK_PATTERN,
|
||||||
NC_("dialogs-action", "P_atterns"), "<control><shift>P",
|
NC_("dialogs-action", "P_atterns"), "<control><shift>P",
|
||||||
|
|
|
@ -669,6 +669,15 @@ dialogs_brush_editor_get (GimpDialogFactory *factory,
|
||||||
factory->menu_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 *
|
GtkWidget *
|
||||||
dialogs_gradient_editor_get (GimpDialogFactory *factory,
|
dialogs_gradient_editor_get (GimpDialogFactory *factory,
|
||||||
GimpContext *context,
|
GimpContext *context,
|
||||||
|
|
|
@ -274,7 +274,19 @@ menus_init (Gimp *gimp,
|
||||||
"/brush-editor-popup",
|
"/brush-editor-popup",
|
||||||
"brush-editor-menu.xml", NULL,
|
"brush-editor-menu.xml", NULL,
|
||||||
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>",
|
gimp_menu_factory_manager_register (global_menu_factory, "<GradientEditor>",
|
||||||
"gradient-editor",
|
"gradient-editor",
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
@ -317,10 +317,17 @@ plug_in_menus_menu_path_added (GimpPlugInProcedure *plug_in_proc,
|
||||||
plug_in_menus_add_proc (manager, "/colormap-popup",
|
plug_in_menus_add_proc (manager, "/colormap-popup",
|
||||||
plug_in_proc, menu_path);
|
plug_in_proc, menu_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (! strcmp (manager->name, "<Brushes>"))
|
else if (! strcmp (manager->name, "<Brushes>"))
|
||||||
{
|
{
|
||||||
plug_in_menus_add_proc (manager, "/brushes-popup",
|
plug_in_menus_add_proc (manager, "/brushes-popup",
|
||||||
plug_in_proc, menu_path);
|
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>"))
|
else if (! strcmp (manager->name, "<Gradients>"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,6 +38,7 @@ OBJECTS = \
|
||||||
internal-procs.obj \
|
internal-procs.obj \
|
||||||
brush-cmds.obj \
|
brush-cmds.obj \
|
||||||
brushes-cmds.obj \
|
brushes-cmds.obj \
|
||||||
|
dynamics-cmds.obj \
|
||||||
buffer-cmds.obj \
|
buffer-cmds.obj \
|
||||||
channel-cmds.obj \
|
channel-cmds.obj \
|
||||||
color-cmds.obj \
|
color-cmds.obj \
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
(gtk_accel_path "<Actions>/layers/layers-alpha-selection-replace" "<Alt>a")
|
(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-layers" "F7")
|
||||||
(gtk_accel_path "<Actions>/dialogs/dialogs-brushes" "")
|
(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>/view/view-info-window" "F8")
|
||||||
(gtk_accel_path "<Actions>/layers/layers-duplicate" "<Control>j")
|
(gtk_accel_path "<Actions>/layers/layers-duplicate" "<Control>j")
|
||||||
(gtk_accel_path "<Actions>/dialogs/dialogs-channels" "<Shift>F7")
|
(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_DATA = \
|
||||||
$(menudata_built_files) \
|
$(menudata_built_files) \
|
||||||
brush-editor-menu.xml \
|
brush-editor-menu.xml \
|
||||||
|
dynamics-editor-menu.xml \
|
||||||
brushes-menu.xml \
|
brushes-menu.xml \
|
||||||
buffers-menu.xml \
|
buffers-menu.xml \
|
||||||
channels-menu.xml \
|
channels-menu.xml \
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<separator />
|
<separator />
|
||||||
<menuitem action="dialogs-colors" />
|
<menuitem action="dialogs-colors" />
|
||||||
<menuitem action="dialogs-brushes" />
|
<menuitem action="dialogs-brushes" />
|
||||||
|
<menuitem action="dialogs-dynamics" />
|
||||||
<menuitem action="dialogs-patterns" />
|
<menuitem action="dialogs-patterns" />
|
||||||
<menuitem action="dialogs-gradients" />
|
<menuitem action="dialogs-gradients" />
|
||||||
<menuitem action="dialogs-palettes" />
|
<menuitem action="dialogs-palettes" />
|
||||||
|
|
8
menus/dynamics-editor-menu.xml
Normal file
8
menus/dynamics-editor-menu.xml
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue