app: add missing bits so GimpToolPresetEditor doesn't warn and crash

This commit is contained in:
Michael Natterer
2010-04-11 13:40:28 +02:00
parent caad58d203
commit ccf8d1930d
5 changed files with 22 additions and 1 deletions

View File

@ -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 },

View File

@ -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",

View File

@ -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 *

View File

@ -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 \

View 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>