app: add missing bits so GimpToolPresetEditor doesn't warn and crash
This commit is contained in:
@ -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 },
|
||||
|
||||
@ -313,6 +313,13 @@ menus_init (Gimp *gimp,
|
||||
"palette-editor-menu.xml", NULL,
|
||||
NULL);
|
||||
|
||||
gimp_menu_factory_manager_register (global_menu_factory, "<ToolPresetEditor>",
|
||||
"tool-preset-editor",
|
||||
NULL,
|
||||
"/tool-preset-editor-popup",
|
||||
"tool-preset-editor-menu.xml", NULL,
|
||||
NULL);
|
||||
|
||||
gimp_menu_factory_manager_register (global_menu_factory, "<Selection>",
|
||||
"select",
|
||||
"vectors",
|
||||
|
||||
@ -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 *
|
||||
|
||||
@ -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 \
|
||||
|
||||
8
menus/tool-preset-editor-menu.xml
Normal file
8
menus/tool-preset-editor-menu.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
|
||||
|
||||
<ui>
|
||||
<popup action="tool-preset-editor-popup">
|
||||
<menuitem action="tool-preset-editor-edit-active" />
|
||||
</popup>
|
||||
</ui>
|
||||
Reference in New Issue
Block a user