Commit 62dcfaec authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/actions/qmask-actions.c prepared qmask_actions_update() and the qmask

2004-04-21  Michael Natterer  <mitch@gimp.org>

	* app/actions/qmask-actions.c
	* app/actions/qmask-commands.c: prepared qmask_actions_update()
	and the qmask callbacks to be merged into the image ui manager.

	* app/actions/dialogs-actions.c
	* app/actions/edit-actions.c
	* app/actions/file-actions.c
	* app/actions/image-actions.c
	* app/actions/layers-actions.c
	* app/actions/plug-in-actions.c
	* app/actions/tools-actions.c
	* app/actions/view-actions.c: fixed lots of typos and buglets
	spotted in my first test run.

	* app/gui/menus.c: register the needed action groups with the
	<Image> menu.

	* app/tools/gimp-tools.c
	* app/tools/gimpdodgeburntool.[ch]
	* app/tools/gimppaintoptions-gui.c: s/dodgeburn/dodge_burn/g.

	* app/widgets/gimpactionfactory.c
	* app/widgets/gimpmenufactory.[ch]: s/G_GNUC_FUNCTION/G_STRFUNC/g,
	updated copyright header.

	* menus/image-menu.xml: fixed typos and added the "Filters"
	submenus.
parent 27a2c8c0
2004-04-21 Michael Natterer <mitch@gimp.org>
* app/actions/qmask-actions.c
* app/actions/qmask-commands.c: prepared qmask_actions_update()
and the qmask callbacks to be merged into the image ui manager.
* app/actions/dialogs-actions.c
* app/actions/edit-actions.c
* app/actions/file-actions.c
* app/actions/image-actions.c
* app/actions/layers-actions.c
* app/actions/plug-in-actions.c
* app/actions/tools-actions.c
* app/actions/view-actions.c: fixed lots of typos and buglets
spotted in my first test run.
* app/gui/menus.c: register the needed action groups with the
<Image> menu.
* app/tools/gimp-tools.c
* app/tools/gimpdodgeburntool.[ch]
* app/tools/gimppaintoptions-gui.c: s/dodgeburn/dodge_burn/g.
* app/widgets/gimpactionfactory.c
* app/widgets/gimpmenufactory.[ch]: s/G_GNUC_FUNCTION/G_STRFUNC/g,
updated copyright header.
* menus/image-menu.xml: fixed typos and added the "Filters"
submenus.
2004-04-21 Michael Natterer <mitch@gimp.org>
More unused action stuff:
......
......@@ -104,7 +104,7 @@ GimpStringActionEntry dialogs_dockable_actions[] =
"gimp-selection-editor",
GIMP_HELP_SELECTION_DIALOG },
{ "dialogs-navigations", GIMP_STOCK_NAVIGATION,
{ "dialogs-navigation", GIMP_STOCK_NAVIGATION,
N_("Na_vigation"), NULL, NULL,
"gimp-navigation-view",
GIMP_HELP_NAVIGATION_DIALOG },
......
......@@ -61,8 +61,8 @@ static void edit_actions_background_changed (GimpContext *context,
static GimpActionEntry edit_actions[] =
{
{ "edit-menu", NULL,
N_("/_Edit") },
{ "edit-menu", NULL, N_("_Edit") },
{ "edit-buffer-menu", NULL, N_("Buffer") },
{ "edit-undo", GTK_STOCK_UNDO,
N_("_Undo"), "<control>Z", NULL,
......@@ -99,20 +99,17 @@ static GimpActionEntry edit_actions[] =
G_CALLBACK (edit_paste_as_new_cmd_callback),
GIMP_HELP_EDIT_PASTE_AS_NEW },
{ "edit-buffer-menu", NULL,
N_("Buffer") },
{ "edit-cut-named", GTK_STOCK_CUT,
{ "edit-named-cut", GTK_STOCK_CUT,
N_("Cu_t Named..."), "<control><shift>X",NULL,
G_CALLBACK (edit_named_cut_cmd_callback),
GIMP_HELP_BUFFER_CUT },
{ "edit-copy-named", GTK_STOCK_COPY,
{ "edit-named-copy", GTK_STOCK_COPY,
N_("_Copy Named..."), "<control><shift>C", NULL,
G_CALLBACK (edit_named_copy_cmd_callback),
GIMP_HELP_BUFFER_COPY },
{ "edit-paste-named", GTK_STOCK_PASTE,
{ "edit-named-paste", GTK_STOCK_PASTE,
N_("_Paste Named..."), "<control><shift>V", NULL,
G_CALLBACK (edit_named_paste_cmd_callback),
GIMP_HELP_BUFFER_PASTE },
......@@ -259,8 +256,8 @@ edit_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("edit-paste", gdisp && group->gimp->global_buffer);
SET_SENSITIVE ("edit-paste-into", gdisp && group->gimp->global_buffer);
SET_SENSITIVE ("edit-cut-named", drawable);
SET_SENSITIVE ("edit-copy-named", drawable);
SET_SENSITIVE ("edit-named-cut", drawable);
SET_SENSITIVE ("edit-named-paste", drawable);
SET_SENSITIVE ("edit-clear", drawable);
SET_SENSITIVE ("edit-fill-fg", drawable);
......
......@@ -57,14 +57,10 @@ static void file_actions_last_opened_reorder (GimpContainer *container,
static GimpActionEntry file_actions[] =
{
{ "file-menu", NULL,
N_("_File") },
{ "file-open-recent-menu", NULL,
N_("Open _Recent") },
{ "file-open-recent-empty", NULL,
N_("(Empty)") },
{ "file-menu", NULL, N_("_File") },
{ "file-open-recent-menu", NULL, N_("Open _Recent") },
{ "file-open-recent-empty", NULL, N_("(Empty)") },
{ "file-acquire-menu", NULL, N_("_Acquire") },
{ "file-new", GTK_STOCK_NEW,
N_("_New..."), "<control>N", NULL,
......@@ -132,7 +128,7 @@ file_actions_setup (GimpActionGroup *group,
for (i = 0; i < n_entries; i++)
{
entries[i].name = g_strdup_printf ("file-last-opened-%02d", i + 1);
entries[i].name = g_strdup_printf ("file-open-recent-%02d", i + 1);
entries[i].stock_id = GTK_STOCK_OPEN;
entries[i].label = NULL;
entries[i].tooltip = NULL;
......
......@@ -45,11 +45,10 @@
static GimpActionEntry image_actions[] =
{
{ "image-menu", NULL,
N_("/_Image") },
{ "image-mode-menu", NULL,
N_("/_Mode") },
{ "image-menubar", NULL, N_("Image Menu") },
{ "image-menu", NULL, N_("_Image") },
{ "image-mode-menu", NULL, N_("_Mode") },
{ "image-transform-menu", NULL, N_("_Transform") },
{ "image-convert-rgb", GIMP_STOCK_CONVERT_RGB,
N_("_RGB"), NULL, NULL,
......@@ -66,9 +65,6 @@ static GimpActionEntry image_actions[] =
G_CALLBACK (image_convert_indexed_cmd_callback),
GIMP_HELP_IMAGE_CONVERT_INDEXED },
{ "image-transform-menu", NULL,
N_("/Image/_Transform") },
{ "image-resize", GIMP_STOCK_RESIZE,
N_("Can_vas Size..."), NULL, NULL,
G_CALLBACK (image_resize_cmd_callback),
......
......@@ -106,7 +106,7 @@ static GimpActionEntry layers_actions[] =
G_CALLBACK (layers_select_next_cmd_callback),
GIMP_HELP_LAYER_NEXT },
{ "layer-select-bottom", NULL,
{ "layers-select-bottom", NULL,
N_("Select _Bottom Layer"), "End", NULL,
G_CALLBACK (layers_select_bottom_cmd_callback),
GIMP_HELP_LAYER_BOTTOM },
......@@ -171,6 +171,11 @@ static GimpActionEntry layers_actions[] =
G_CALLBACK (layers_scale_cmd_callback),
GIMP_HELP_LAYER_SCALE },
{ "layers-crop", GIMP_STOCK_TOOL_CROP,
N_("Cr_op Layer"), NULL, NULL,
G_CALLBACK (layers_crop_cmd_callback),
GIMP_HELP_LAYER_CROP },
{ "layers-mask-add", GIMP_STOCK_LAYER_MASK,
N_("Add La_yer Mask..."), NULL, NULL,
G_CALLBACK (layers_mask_add_cmd_callback),
......@@ -199,7 +204,7 @@ static GimpEnumActionEntry layers_mask_to_selection_actions[] =
GIMP_CHANNEL_OP_REPLACE,
GIMP_HELP_LAYER_MASK_SELECTION_REPLACE },
{ "layer-mask-selection-add", GIMP_STOCK_SELECTION_ADD,
{ "layers-mask-selection-add", GIMP_STOCK_SELECTION_ADD,
N_("_Add to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_ADD,
GIMP_HELP_LAYER_MASK_SELECTION_ADD },
......@@ -232,7 +237,7 @@ static GimpEnumActionEntry layers_alpha_to_selection_actions[] =
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_HELP_LAYER_ALPHA_SELECTION_SUBTRACT },
{ "layer-alpha-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
{ "layers-alpha-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
N_("_Intersect with Selection"), NULL, NULL,
GIMP_CHANNEL_OP_INTERSECT,
GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT }
......
......@@ -64,12 +64,12 @@ static gboolean plug_in_actions_tree_traverse_func (gpointer foo,
static GimpActionEntry plug_in_actions[] =
{
{ "plug-in-menu", NULL, N_("/Filte_rs") },
{ "plug-in-menu", NULL, N_("Filte_rs") },
{ "plug-in-blur-menu", NULL, N_("_Blur") },
{ "plug-in-colors-menu", NULL, N_("_Colors") },
{ "plug-in-colors-map-menu", NULL, N_("Ma_p") },
{ "plug-in-noise-menu", NULL, N_("_Noise") },
{ "pluf-in-edge-detect-menu", NULL, N_("Edge-De_tect") },
{ "plug-in-edge-detect-menu", NULL, N_("Edge-De_tect") },
{ "plug-in-enhance-menu", NULL, N_("En_hance") },
{ "plug-in-generic-menu", NULL, N_("_Generic") },
{ "plug-in-glass-effects-menu", NULL, N_("Gla_ss Effects") },
......
......@@ -95,23 +95,37 @@ void
qmask_actions_update (GimpActionGroup *group,
gpointer data)
{
GimpDisplayShell *shell;
shell = GIMP_DISPLAY_SHELL (data);
GimpDisplay *gdisp = NULL;
GimpDisplayShell *shell = NULL;
GimpImage *gimage = NULL;
if (GIMP_IS_DISPLAY_SHELL (data))
{
shell = GIMP_DISPLAY_SHELL (data);
gdisp = shell->gdisp;
}
else if (GIMP_IS_DISPLAY (data))
{
gdisp = GIMP_DISPLAY (data);
shell = GIMP_DISPLAY_SHELL (gdisp->shell);
}
if (gdisp)
gimage = gdisp->gimage;
#define SET_ACTIVE(action,active) \
gimp_action_group_set_action_active (group, action, (active))
#define SET_COLOR(action,color) \
gimp_action_group_set_action_color (group, action, (color), FALSE)
SET_ACTIVE ("qmask-toggle", shell->gdisp->gimage->qmask_state);
SET_ACTIVE ("qmask-toggle", gimage->qmask_state);
if (shell->gdisp->gimage->qmask_inverted)
if (gimage->qmask_inverted)
SET_ACTIVE ("qmask-invert-on", TRUE);
else
SET_ACTIVE ("qmask-invert-off", TRUE);
SET_COLOR ("qmask-configure", &shell->gdisp->gimage->qmask_color);
SET_COLOR ("qmask-configure", &gimage->qmask_color);
#undef SET_SENSITIVE
#undef SET_COLOR
......
......@@ -27,10 +27,12 @@
#include "core/gimp.h"
#include "core/gimpchannel.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-qmask.h"
#include "widgets/gimpcolorpanel.h"
#include "widgets/gimpdock.h"
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpviewabledialog.h"
......@@ -54,6 +56,35 @@ struct _EditQmaskOptions
};
#define return_if_no_display(gdisp,data) \
if (GIMP_IS_DISPLAY (data)) \
gdisp = data; \
else if (GIMP_IS_DISPLAY_SHELL (data)) \
gdisp = ((GimpDisplayShell *) data)->gdisp; \
else if (GIMP_IS_GIMP (data)) \
gdisp = gimp_context_get_display (gimp_get_user_context (GIMP (data))); \
else if (GIMP_IS_DOCK (data)) \
gdisp = gimp_context_get_display (((GimpDock *) data)->context); \
else \
gdisp = NULL; \
if (! gdisp) \
return
#define return_if_no_image(gimage,data) \
if (GIMP_IS_DISPLAY (data)) \
gimage = ((GimpDisplay *) data)->gimage; \
else if (GIMP_IS_DISPLAY_SHELL (data)) \
gimage = ((GimpDisplayShell *) data)->gdisp->gimage; \
else if (GIMP_IS_GIMP (data)) \
gimage = gimp_context_get_image (gimp_get_user_context (GIMP (data))); \
else if (GIMP_IS_DOCK (data)) \
gimage = gimp_context_get_image (((GimpDock *) data)->context); \
else \
gimage = NULL; \
if (! gimage) \
return
/* local function prototypes */
static void qmask_channel_query (GimpDisplayShell *shell);
......@@ -72,15 +103,14 @@ void
qmask_toggle_cmd_callback (GtkWidget *widget,
gpointer data)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active !=
gimp_image_get_qmask_state (shell->gdisp->gimage))
gimp_image_get_qmask_state (gimage))
{
gimp_image_set_qmask_state (shell->gdisp->gimage,
GTK_CHECK_MENU_ITEM (widget)->active);
gimp_image_flush (shell->gdisp->gimage);
gimp_image_set_qmask_state (gimage, GTK_CHECK_MENU_ITEM (widget)->active);
gimp_image_flush (gimage);
}
}
......@@ -89,16 +119,17 @@ qmask_invert_cmd_callback (GtkWidget *widget,
gpointer data,
guint action)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active)
{
if (action != shell->gdisp->gimage->qmask_inverted)
if (action != gimage->qmask_inverted)
{
gimp_image_qmask_invert (shell->gdisp->gimage);
gimp_image_qmask_invert (gimage);
if (gimp_image_get_qmask_state (shell->gdisp->gimage))
gimp_image_flush (shell->gdisp->gimage);
if (gimp_image_get_qmask_state (gimage))
gimp_image_flush (gimage);
}
}
}
......@@ -107,9 +138,10 @@ void
qmask_configure_cmd_callback (GtkWidget *widget,
gpointer data)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpDisplay *gdisp;
return_if_no_display (gdisp, data);
qmask_channel_query (shell);
qmask_channel_query (GIMP_DISPLAY_SHELL (gdisp->shell));
}
......
......@@ -95,23 +95,37 @@ void
qmask_actions_update (GimpActionGroup *group,
gpointer data)
{
GimpDisplayShell *shell;
shell = GIMP_DISPLAY_SHELL (data);
GimpDisplay *gdisp = NULL;
GimpDisplayShell *shell = NULL;
GimpImage *gimage = NULL;
if (GIMP_IS_DISPLAY_SHELL (data))
{
shell = GIMP_DISPLAY_SHELL (data);
gdisp = shell->gdisp;
}
else if (GIMP_IS_DISPLAY (data))
{
gdisp = GIMP_DISPLAY (data);
shell = GIMP_DISPLAY_SHELL (gdisp->shell);
}
if (gdisp)
gimage = gdisp->gimage;
#define SET_ACTIVE(action,active) \
gimp_action_group_set_action_active (group, action, (active))
#define SET_COLOR(action,color) \
gimp_action_group_set_action_color (group, action, (color), FALSE)
SET_ACTIVE ("qmask-toggle", shell->gdisp->gimage->qmask_state);
SET_ACTIVE ("qmask-toggle", gimage->qmask_state);
if (shell->gdisp->gimage->qmask_inverted)
if (gimage->qmask_inverted)
SET_ACTIVE ("qmask-invert-on", TRUE);
else
SET_ACTIVE ("qmask-invert-off", TRUE);
SET_COLOR ("qmask-configure", &shell->gdisp->gimage->qmask_color);
SET_COLOR ("qmask-configure", &gimage->qmask_color);
#undef SET_SENSITIVE
#undef SET_COLOR
......
......@@ -27,10 +27,12 @@
#include "core/gimp.h"
#include "core/gimpchannel.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-qmask.h"
#include "widgets/gimpcolorpanel.h"
#include "widgets/gimpdock.h"
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpviewabledialog.h"
......@@ -54,6 +56,35 @@ struct _EditQmaskOptions
};
#define return_if_no_display(gdisp,data) \
if (GIMP_IS_DISPLAY (data)) \
gdisp = data; \
else if (GIMP_IS_DISPLAY_SHELL (data)) \
gdisp = ((GimpDisplayShell *) data)->gdisp; \
else if (GIMP_IS_GIMP (data)) \
gdisp = gimp_context_get_display (gimp_get_user_context (GIMP (data))); \
else if (GIMP_IS_DOCK (data)) \
gdisp = gimp_context_get_display (((GimpDock *) data)->context); \
else \
gdisp = NULL; \
if (! gdisp) \
return
#define return_if_no_image(gimage,data) \
if (GIMP_IS_DISPLAY (data)) \
gimage = ((GimpDisplay *) data)->gimage; \
else if (GIMP_IS_DISPLAY_SHELL (data)) \
gimage = ((GimpDisplayShell *) data)->gdisp->gimage; \
else if (GIMP_IS_GIMP (data)) \
gimage = gimp_context_get_image (gimp_get_user_context (GIMP (data))); \
else if (GIMP_IS_DOCK (data)) \
gimage = gimp_context_get_image (((GimpDock *) data)->context); \
else \
gimage = NULL; \
if (! gimage) \
return
/* local function prototypes */
static void qmask_channel_query (GimpDisplayShell *shell);
......@@ -72,15 +103,14 @@ void
qmask_toggle_cmd_callback (GtkWidget *widget,
gpointer data)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active !=
gimp_image_get_qmask_state (shell->gdisp->gimage))
gimp_image_get_qmask_state (gimage))
{
gimp_image_set_qmask_state (shell->gdisp->gimage,
GTK_CHECK_MENU_ITEM (widget)->active);
gimp_image_flush (shell->gdisp->gimage);
gimp_image_set_qmask_state (gimage, GTK_CHECK_MENU_ITEM (widget)->active);
gimp_image_flush (gimage);
}
}
......@@ -89,16 +119,17 @@ qmask_invert_cmd_callback (GtkWidget *widget,
gpointer data,
guint action)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active)
{
if (action != shell->gdisp->gimage->qmask_inverted)
if (action != gimage->qmask_inverted)
{
gimp_image_qmask_invert (shell->gdisp->gimage);
gimp_image_qmask_invert (gimage);
if (gimp_image_get_qmask_state (shell->gdisp->gimage))
gimp_image_flush (shell->gdisp->gimage);
if (gimp_image_get_qmask_state (gimage))
gimp_image_flush (gimage);
}
}
}
......@@ -107,9 +138,10 @@ void
qmask_configure_cmd_callback (GtkWidget *widget,
gpointer data)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
GimpDisplay *gdisp;
return_if_no_display (gdisp, data);
qmask_channel_query (shell);
qmask_channel_query (GIMP_DISPLAY_SHELL (gdisp->shell));
}
......
......@@ -18,6 +18,8 @@
#include "config.h"
#include <string.h>
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
......@@ -39,20 +41,11 @@
static GimpActionEntry tools_actions[] =
{
{ "tools-menu", NULL,
N_("_Tools") },
{ "tools-select-menu", NULL,
N_("_Selection Tools") },
{ "tools-paint-menu", NULL,
N_("_Paint Tools") },
{ "tools-transform-menu", NULL,
N_("/Tools/_Transform Tools") },
{ "tools-color-menu", NULL,
N_("_Color Tools") },
{ "tools-menu", NULL, N_("_Tools") },
{ "tools-select-menu", NULL, N_("_Selection Tools") },
{ "tools-paint-menu", NULL, N_("_Paint Tools") },
{ "tools-transform-menu", NULL, N_("_Transform Tools") },
{ "tools-color-menu", NULL, N_("_Color Tools") },
{ "tools-default-colors", GIMP_STOCK_DEFAULT_COLORS,
N_("_Default Colors"), "D", NULL,
......@@ -88,11 +81,18 @@ tools_actions_setup (GimpActionGroup *group,
GimpStringActionEntry entry;
const gchar *stock_id;
const gchar *identifier;
gchar *tmp;
gchar *name;
stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info));
identifier = gimp_object_get_name (GIMP_OBJECT (tool_info));
entry.name = identifier; /* FIXME */
tmp = g_strndup (identifier + strlen ("gimp-"),
strlen (identifier) - strlen ("gimp--tool"));
name = g_strdup_printf ("tools-%s", tmp);
g_free (tmp);
entry.name = name;
entry.stock_id = stock_id;
entry.label = tool_info->menu_path;
entry.accelerator = tool_info->menu_accel;
......@@ -103,6 +103,8 @@ tools_actions_setup (GimpActionGroup *group,
&entry, 1,
G_CALLBACK (tools_select_cmd_callback),
data);
g_free (name);
}
}
}
......
......@@ -53,11 +53,8 @@ static void view_actions_set_zoom (GimpActionGroup *group,
static GimpActionEntry view_actions[] =
{
{ "view-menu", NULL,
N_("/_View") },
{ "view-zoom-menu", NULL,
N_("_Zoom") },
{ "view-menu", NULL, N_("_View") },
{ "view-zoom-menu", NULL, N_("_Zoom") },
{ "view-new", GTK_STOCK_NEW,
N_("_New View"), "", NULL,
......@@ -131,7 +128,7 @@ static GimpToggleActionEntry view_toggle_actions[] =
TRUE,
GIMP_HELP_VIEW_SHOW_GUIDES },
{ "view-snap-to-giudes", NULL,
{ "view-snap-to-guides", NULL,
N_("Sn_ap to Guides"), NULL, NULL,
G_CALLBACK (view_snap_to_guides_cmd_callback),
TRUE,
......
......@@ -126,6 +126,10 @@ menus_init (Gimp *gimp)
image_menu_setup, image_menu_update, FALSE,
n_image_menu_entries,
image_menu_entries);
gimp_menu_factory_manager_register (global_menu_factory, "<Image>",
"file", "edit", "select", "view",
"image", "drawable", "layers", "vectors",
"tools", "dialogs", "plug-in", NULL);
gimp_menu_factory_menu_register (global_menu_factory, "<Load>",
_("Open Menu"),
......
......@@ -126,6 +126,10 @@ menus_init (Gimp *gimp)
image_menu_setup, image_menu_update, FALSE,
n_image_menu_entries,
image_menu_entries);
gimp_menu_factory_manager_register (global_menu_factory, "<Image>",
"file", "edit", "select", "view",
"image", "drawable", "layers", "vectors",
"tools", "dialogs", "plug-in", NULL);
gimp_menu_factory_menu_register (global_menu_factory, "<Load>",
_("Open Menu"),
......
......@@ -114,7 +114,7 @@ gimp_tools_init (Gimp *gimp)
/* paint tools */
gimp_dodgeburn_tool_register,
gimp_dodge_burn_tool_register,
gimp_smudge_tool_register,
gimp_convolve_tool_register,
gimp_clone_tool_register,
......@@ -343,7 +343,7 @@ gimp_tools_register (GType tool_type,
{
paint_core_name = "GimpSmudge";