Commit 441d2870 authored by zhenfeng zhao's avatar zhenfeng zhao

Fix menu issues.

   actions/dynamics-editor-actions.c
   dialogs/dialogs-constructors.c
   ../menus/dialogs-menuitems.xml
   ../menus/image-menu.xml.in
parent 7d3f1f0a
......@@ -35,14 +35,14 @@
#include "gimp-intl.h"
static const GimpActionEntry dynamics_editor_actions[] =
{
{ "dynamics-editor-popup", GIMP_STOCK_BRUSH,
{ "dynamics-editor-popup", GIMP_STOCK_DYNAMICS,
NC_("dynamics-editor-action", "Dynamics Editor Menu"), NULL, NULL, NULL,
GIMP_HELP_BRUSH_EDITOR_DIALOG }
};
static const GimpToggleActionEntry dynamics_editor_toggle_actions[] =
{
{ "dynamics-editor-edit-active", GIMP_STOCK_LINKED,
......@@ -60,9 +60,10 @@ dynamics_editor_actions_setup (GimpActionGroup *group)
dynamics_editor_actions,
G_N_ELEMENTS (dynamics_editor_actions));
gimp_action_group_add_toggle_actions (group, "dynamics-editor-action",
gimp_action_group_add_toggle_actions (group, "dynamics-editor-action",
dynamics_editor_toggle_actions,
G_N_ELEMENTS (dynamics_editor_toggle_actions));
}
void
......
......@@ -675,8 +675,8 @@ dialogs_dynamics_editor_get (GimpDialogFactory *factory,
GimpContext *context,
gint view_size)
{
//return gimp_dynamics_editor_new (context,
// factory->menu_factory);
return gimp_brush_editor_new (context,
factory->menu_factory);
}
GtkWidget *
......
......@@ -17,7 +17,7 @@
<separator />
<menuitem action="dialogs-colors" />
<menuitem action="dialogs-brushes" />
<menuitem action="dialogs-dynamics-editor" />
<menuitem action="dialogs-dynamics" />
<menuitem action="dialogs-patterns" />
<menuitem action="dialogs-gradients" />
<menuitem action="dialogs-palettes" />
......
......@@ -138,6 +138,13 @@
<menuitem action="context-brush-angle-increase-skip" />
</menu>
</menu>
<menu action="context-dynamics-menu" name="Pattern">
<menuitem action="context-dynamics-select-first" />
<menuitem action="context-dynamics-select-last" />
<menuitem action="context-dynamics-select-previous" />
<menuitem action="context-dynamics-select-next" />
</menu>
</menu>
<menu action="context-pattern-menu" name="Pattern">
<menuitem action="context-pattern-select-first" />
<menuitem action="context-pattern-select-last" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment