diff --git a/app/actions/actions.c b/app/actions/actions.c index 5ff22b3391..0bc37aca4c 100644 --- a/app/actions/actions.c +++ b/app/actions/actions.c @@ -88,6 +88,7 @@ #include "text-tool-actions.h" #include "tool-options-actions.h" #include "tool-preset-actions.h" +#include "tool-preset-editor-actions.h" #include "tools-actions.h" #include "vectors-actions.h" #include "view-actions.h" @@ -174,6 +175,9 @@ static const GimpActionFactoryEntry action_groups[] = { "tool-preset", N_("Tool Presets"), GIMP_STOCK_TOOL_PRESET, tool_preset_actions_setup, tool_preset_actions_update }, + { "tool-preset-editor", N_("Tool Preset Editor"), GIMP_STOCK_TOOL_PRESET, + tool_preset_editor_actions_setup, + tool_preset_editor_actions_update }, { "help", N_("Help"), GTK_STOCK_HELP, help_actions_setup, help_actions_update }, diff --git a/app/menus/menus.c b/app/menus/menus.c index 04f54f2ffa..455d38840e 100644 --- a/app/menus/menus.c +++ b/app/menus/menus.c @@ -313,6 +313,13 @@ menus_init (Gimp *gimp, "palette-editor-menu.xml", NULL, NULL); + gimp_menu_factory_manager_register (global_menu_factory, "", + "tool-preset-editor", + NULL, + "/tool-preset-editor-popup", + "tool-preset-editor-menu.xml", NULL, + NULL); + gimp_menu_factory_manager_register (global_menu_factory, "", "select", "vectors", diff --git a/app/widgets/gimptoolpreseteditor.c b/app/widgets/gimptoolpreseteditor.c index c583027613..954107c4c3 100644 --- a/app/widgets/gimptoolpreseteditor.c +++ b/app/widgets/gimptoolpreseteditor.c @@ -77,7 +77,8 @@ static void gimp_tool_preset_editor_init (GimpToolPresetEditor *editor) { GimpDataEditor *data_editor = GIMP_DATA_EDITOR (editor); - /*Nuffink*/ + + editor->tool_preset_model = g_object_new (GIMP_TYPE_TOOL_PRESET, NULL); } static GObject * diff --git a/menus/Makefile.am b/menus/Makefile.am index 7a0a53a8e6..cbb2f5aa0d 100644 --- a/menus/Makefile.am +++ b/menus/Makefile.am @@ -28,6 +28,7 @@ menudata_DATA = \ palette-editor-menu.xml \ palettes-menu.xml \ patterns-menu.xml \ + tool-preset-editor-menu.xml \ tool-preset-menu.xml \ quick-mask-menu.xml \ sample-points-menu.xml \ diff --git a/menus/tool-preset-editor-menu.xml b/menus/tool-preset-editor-menu.xml new file mode 100644 index 0000000000..b4a8ee05d7 --- /dev/null +++ b/menus/tool-preset-editor-menu.xml @@ -0,0 +1,8 @@ + + + + + + + +