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.
This commit is contained in:
Michael Natterer 2004-04-21 10:55:45 +00:00 committed by Michael Natterer
parent 27a2c8c0e6
commit 62dcfaecbf
23 changed files with 330 additions and 160 deletions

View File

@ -1,3 +1,33 @@
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> 2004-04-21 Michael Natterer <mitch@gimp.org>
More unused action stuff: More unused action stuff:

View File

@ -104,7 +104,7 @@ GimpStringActionEntry dialogs_dockable_actions[] =
"gimp-selection-editor", "gimp-selection-editor",
GIMP_HELP_SELECTION_DIALOG }, GIMP_HELP_SELECTION_DIALOG },
{ "dialogs-navigations", GIMP_STOCK_NAVIGATION, { "dialogs-navigation", GIMP_STOCK_NAVIGATION,
N_("Na_vigation"), NULL, NULL, N_("Na_vigation"), NULL, NULL,
"gimp-navigation-view", "gimp-navigation-view",
GIMP_HELP_NAVIGATION_DIALOG }, GIMP_HELP_NAVIGATION_DIALOG },

View File

@ -61,8 +61,8 @@ static void edit_actions_background_changed (GimpContext *context,
static GimpActionEntry edit_actions[] = static GimpActionEntry edit_actions[] =
{ {
{ "edit-menu", NULL, { "edit-menu", NULL, N_("_Edit") },
N_("/_Edit") }, { "edit-buffer-menu", NULL, N_("Buffer") },
{ "edit-undo", GTK_STOCK_UNDO, { "edit-undo", GTK_STOCK_UNDO,
N_("_Undo"), "<control>Z", NULL, N_("_Undo"), "<control>Z", NULL,
@ -99,20 +99,17 @@ static GimpActionEntry edit_actions[] =
G_CALLBACK (edit_paste_as_new_cmd_callback), G_CALLBACK (edit_paste_as_new_cmd_callback),
GIMP_HELP_EDIT_PASTE_AS_NEW }, GIMP_HELP_EDIT_PASTE_AS_NEW },
{ "edit-buffer-menu", NULL, { "edit-named-cut", GTK_STOCK_CUT,
N_("Buffer") },
{ "edit-cut-named", GTK_STOCK_CUT,
N_("Cu_t Named..."), "<control><shift>X",NULL, N_("Cu_t Named..."), "<control><shift>X",NULL,
G_CALLBACK (edit_named_cut_cmd_callback), G_CALLBACK (edit_named_cut_cmd_callback),
GIMP_HELP_BUFFER_CUT }, GIMP_HELP_BUFFER_CUT },
{ "edit-copy-named", GTK_STOCK_COPY, { "edit-named-copy", GTK_STOCK_COPY,
N_("_Copy Named..."), "<control><shift>C", NULL, N_("_Copy Named..."), "<control><shift>C", NULL,
G_CALLBACK (edit_named_copy_cmd_callback), G_CALLBACK (edit_named_copy_cmd_callback),
GIMP_HELP_BUFFER_COPY }, GIMP_HELP_BUFFER_COPY },
{ "edit-paste-named", GTK_STOCK_PASTE, { "edit-named-paste", GTK_STOCK_PASTE,
N_("_Paste Named..."), "<control><shift>V", NULL, N_("_Paste Named..."), "<control><shift>V", NULL,
G_CALLBACK (edit_named_paste_cmd_callback), G_CALLBACK (edit_named_paste_cmd_callback),
GIMP_HELP_BUFFER_PASTE }, 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", gdisp && group->gimp->global_buffer);
SET_SENSITIVE ("edit-paste-into", gdisp && group->gimp->global_buffer); SET_SENSITIVE ("edit-paste-into", gdisp && group->gimp->global_buffer);
SET_SENSITIVE ("edit-cut-named", drawable); SET_SENSITIVE ("edit-named-cut", drawable);
SET_SENSITIVE ("edit-copy-named", drawable); SET_SENSITIVE ("edit-named-paste", drawable);
SET_SENSITIVE ("edit-clear", drawable); SET_SENSITIVE ("edit-clear", drawable);
SET_SENSITIVE ("edit-fill-fg", drawable); SET_SENSITIVE ("edit-fill-fg", drawable);

View File

@ -57,14 +57,10 @@ static void file_actions_last_opened_reorder (GimpContainer *container,
static GimpActionEntry file_actions[] = static GimpActionEntry file_actions[] =
{ {
{ "file-menu", NULL, { "file-menu", NULL, N_("_File") },
N_("_File") }, { "file-open-recent-menu", NULL, N_("Open _Recent") },
{ "file-open-recent-empty", NULL, N_("(Empty)") },
{ "file-open-recent-menu", NULL, { "file-acquire-menu", NULL, N_("_Acquire") },
N_("Open _Recent") },
{ "file-open-recent-empty", NULL,
N_("(Empty)") },
{ "file-new", GTK_STOCK_NEW, { "file-new", GTK_STOCK_NEW,
N_("_New..."), "<control>N", NULL, N_("_New..."), "<control>N", NULL,
@ -132,7 +128,7 @@ file_actions_setup (GimpActionGroup *group,
for (i = 0; i < n_entries; i++) 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].stock_id = GTK_STOCK_OPEN;
entries[i].label = NULL; entries[i].label = NULL;
entries[i].tooltip = NULL; entries[i].tooltip = NULL;

View File

@ -45,11 +45,10 @@
static GimpActionEntry image_actions[] = static GimpActionEntry image_actions[] =
{ {
{ "image-menu", NULL, { "image-menubar", NULL, N_("Image Menu") },
N_("/_Image") }, { "image-menu", NULL, N_("_Image") },
{ "image-mode-menu", NULL, N_("_Mode") },
{ "image-mode-menu", NULL, { "image-transform-menu", NULL, N_("_Transform") },
N_("/_Mode") },
{ "image-convert-rgb", GIMP_STOCK_CONVERT_RGB, { "image-convert-rgb", GIMP_STOCK_CONVERT_RGB,
N_("_RGB"), NULL, NULL, N_("_RGB"), NULL, NULL,
@ -66,9 +65,6 @@ static GimpActionEntry image_actions[] =
G_CALLBACK (image_convert_indexed_cmd_callback), G_CALLBACK (image_convert_indexed_cmd_callback),
GIMP_HELP_IMAGE_CONVERT_INDEXED }, GIMP_HELP_IMAGE_CONVERT_INDEXED },
{ "image-transform-menu", NULL,
N_("/Image/_Transform") },
{ "image-resize", GIMP_STOCK_RESIZE, { "image-resize", GIMP_STOCK_RESIZE,
N_("Can_vas Size..."), NULL, NULL, N_("Can_vas Size..."), NULL, NULL,
G_CALLBACK (image_resize_cmd_callback), G_CALLBACK (image_resize_cmd_callback),

View File

@ -106,7 +106,7 @@ static GimpActionEntry layers_actions[] =
G_CALLBACK (layers_select_next_cmd_callback), G_CALLBACK (layers_select_next_cmd_callback),
GIMP_HELP_LAYER_NEXT }, GIMP_HELP_LAYER_NEXT },
{ "layer-select-bottom", NULL, { "layers-select-bottom", NULL,
N_("Select _Bottom Layer"), "End", NULL, N_("Select _Bottom Layer"), "End", NULL,
G_CALLBACK (layers_select_bottom_cmd_callback), G_CALLBACK (layers_select_bottom_cmd_callback),
GIMP_HELP_LAYER_BOTTOM }, GIMP_HELP_LAYER_BOTTOM },
@ -171,6 +171,11 @@ static GimpActionEntry layers_actions[] =
G_CALLBACK (layers_scale_cmd_callback), G_CALLBACK (layers_scale_cmd_callback),
GIMP_HELP_LAYER_SCALE }, 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, { "layers-mask-add", GIMP_STOCK_LAYER_MASK,
N_("Add La_yer Mask..."), NULL, NULL, N_("Add La_yer Mask..."), NULL, NULL,
G_CALLBACK (layers_mask_add_cmd_callback), G_CALLBACK (layers_mask_add_cmd_callback),
@ -199,7 +204,7 @@ static GimpEnumActionEntry layers_mask_to_selection_actions[] =
GIMP_CHANNEL_OP_REPLACE, GIMP_CHANNEL_OP_REPLACE,
GIMP_HELP_LAYER_MASK_SELECTION_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, N_("_Add to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_ADD, GIMP_CHANNEL_OP_ADD,
GIMP_HELP_LAYER_MASK_SELECTION_ADD }, GIMP_HELP_LAYER_MASK_SELECTION_ADD },
@ -232,7 +237,7 @@ static GimpEnumActionEntry layers_alpha_to_selection_actions[] =
GIMP_CHANNEL_OP_SUBTRACT, GIMP_CHANNEL_OP_SUBTRACT,
GIMP_HELP_LAYER_ALPHA_SELECTION_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, N_("_Intersect with Selection"), NULL, NULL,
GIMP_CHANNEL_OP_INTERSECT, GIMP_CHANNEL_OP_INTERSECT,
GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT } GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT }

View File

@ -64,12 +64,12 @@ static gboolean plug_in_actions_tree_traverse_func (gpointer foo,
static GimpActionEntry plug_in_actions[] = 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-blur-menu", NULL, N_("_Blur") },
{ "plug-in-colors-menu", NULL, N_("_Colors") }, { "plug-in-colors-menu", NULL, N_("_Colors") },
{ "plug-in-colors-map-menu", NULL, N_("Ma_p") }, { "plug-in-colors-map-menu", NULL, N_("Ma_p") },
{ "plug-in-noise-menu", NULL, N_("_Noise") }, { "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-enhance-menu", NULL, N_("En_hance") },
{ "plug-in-generic-menu", NULL, N_("_Generic") }, { "plug-in-generic-menu", NULL, N_("_Generic") },
{ "plug-in-glass-effects-menu", NULL, N_("Gla_ss Effects") }, { "plug-in-glass-effects-menu", NULL, N_("Gla_ss Effects") },

View File

@ -95,23 +95,37 @@ void
qmask_actions_update (GimpActionGroup *group, qmask_actions_update (GimpActionGroup *group,
gpointer data) gpointer data)
{ {
GimpDisplayShell *shell; GimpDisplay *gdisp = NULL;
GimpDisplayShell *shell = NULL;
GimpImage *gimage = NULL;
shell = GIMP_DISPLAY_SHELL (data); 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) \ #define SET_ACTIVE(action,active) \
gimp_action_group_set_action_active (group, action, (active)) gimp_action_group_set_action_active (group, action, (active))
#define SET_COLOR(action,color) \ #define SET_COLOR(action,color) \
gimp_action_group_set_action_color (group, action, (color), FALSE) 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); SET_ACTIVE ("qmask-invert-on", TRUE);
else else
SET_ACTIVE ("qmask-invert-off", TRUE); 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_SENSITIVE
#undef SET_COLOR #undef SET_COLOR

View File

@ -27,10 +27,12 @@
#include "core/gimp.h" #include "core/gimp.h"
#include "core/gimpchannel.h" #include "core/gimpchannel.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h" #include "core/gimpimage.h"
#include "core/gimpimage-qmask.h" #include "core/gimpimage-qmask.h"
#include "widgets/gimpcolorpanel.h" #include "widgets/gimpcolorpanel.h"
#include "widgets/gimpdock.h"
#include "widgets/gimphelp-ids.h" #include "widgets/gimphelp-ids.h"
#include "widgets/gimpviewabledialog.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 */ /* local function prototypes */
static void qmask_channel_query (GimpDisplayShell *shell); static void qmask_channel_query (GimpDisplayShell *shell);
@ -72,15 +103,14 @@ void
qmask_toggle_cmd_callback (GtkWidget *widget, qmask_toggle_cmd_callback (GtkWidget *widget,
gpointer data) gpointer data)
{ {
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data); GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active != 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, gimp_image_set_qmask_state (gimage, GTK_CHECK_MENU_ITEM (widget)->active);
GTK_CHECK_MENU_ITEM (widget)->active); gimp_image_flush (gimage);
gimp_image_flush (shell->gdisp->gimage);
} }
} }
@ -89,16 +119,17 @@ qmask_invert_cmd_callback (GtkWidget *widget,
gpointer data, gpointer data,
guint action) guint action)
{ {
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data); GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active) 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)) if (gimp_image_get_qmask_state (gimage))
gimp_image_flush (shell->gdisp->gimage); gimp_image_flush (gimage);
} }
} }
} }
@ -107,9 +138,10 @@ void
qmask_configure_cmd_callback (GtkWidget *widget, qmask_configure_cmd_callback (GtkWidget *widget,
gpointer data) 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));
} }

View File

@ -95,23 +95,37 @@ void
qmask_actions_update (GimpActionGroup *group, qmask_actions_update (GimpActionGroup *group,
gpointer data) gpointer data)
{ {
GimpDisplayShell *shell; GimpDisplay *gdisp = NULL;
GimpDisplayShell *shell = NULL;
GimpImage *gimage = NULL;
shell = GIMP_DISPLAY_SHELL (data); 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) \ #define SET_ACTIVE(action,active) \
gimp_action_group_set_action_active (group, action, (active)) gimp_action_group_set_action_active (group, action, (active))
#define SET_COLOR(action,color) \ #define SET_COLOR(action,color) \
gimp_action_group_set_action_color (group, action, (color), FALSE) 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); SET_ACTIVE ("qmask-invert-on", TRUE);
else else
SET_ACTIVE ("qmask-invert-off", TRUE); 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_SENSITIVE
#undef SET_COLOR #undef SET_COLOR

View File

@ -27,10 +27,12 @@
#include "core/gimp.h" #include "core/gimp.h"
#include "core/gimpchannel.h" #include "core/gimpchannel.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h" #include "core/gimpimage.h"
#include "core/gimpimage-qmask.h" #include "core/gimpimage-qmask.h"
#include "widgets/gimpcolorpanel.h" #include "widgets/gimpcolorpanel.h"
#include "widgets/gimpdock.h"
#include "widgets/gimphelp-ids.h" #include "widgets/gimphelp-ids.h"
#include "widgets/gimpviewabledialog.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 */ /* local function prototypes */
static void qmask_channel_query (GimpDisplayShell *shell); static void qmask_channel_query (GimpDisplayShell *shell);
@ -72,15 +103,14 @@ void
qmask_toggle_cmd_callback (GtkWidget *widget, qmask_toggle_cmd_callback (GtkWidget *widget,
gpointer data) gpointer data)
{ {
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data); GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active != 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, gimp_image_set_qmask_state (gimage, GTK_CHECK_MENU_ITEM (widget)->active);
GTK_CHECK_MENU_ITEM (widget)->active); gimp_image_flush (gimage);
gimp_image_flush (shell->gdisp->gimage);
} }
} }
@ -89,16 +119,17 @@ qmask_invert_cmd_callback (GtkWidget *widget,
gpointer data, gpointer data,
guint action) guint action)
{ {
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data); GimpImage *gimage;
return_if_no_image (gimage, data);
if (GTK_CHECK_MENU_ITEM (widget)->active) 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)) if (gimp_image_get_qmask_state (gimage))
gimp_image_flush (shell->gdisp->gimage); gimp_image_flush (gimage);
} }
} }
} }
@ -107,9 +138,10 @@ void
qmask_configure_cmd_callback (GtkWidget *widget, qmask_configure_cmd_callback (GtkWidget *widget,
gpointer data) 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));
} }

View File

@ -18,6 +18,8 @@
#include "config.h" #include "config.h"
#include <string.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h" #include "libgimpwidgets/gimpwidgets.h"
@ -39,20 +41,11 @@
static GimpActionEntry tools_actions[] = static GimpActionEntry tools_actions[] =
{ {
{ "tools-menu", NULL, { "tools-menu", NULL, N_("_Tools") },
N_("_Tools") }, { "tools-select-menu", NULL, N_("_Selection Tools") },
{ "tools-paint-menu", NULL, N_("_Paint Tools") },
{ "tools-select-menu", NULL, { "tools-transform-menu", NULL, N_("_Transform Tools") },
N_("_Selection Tools") }, { "tools-color-menu", NULL, N_("_Color Tools") },
{ "tools-paint-menu", NULL,
N_("_Paint Tools") },
{ "tools-transform-menu", NULL,
N_("/Tools/_Transform Tools") },
{ "tools-color-menu", NULL,
N_("_Color Tools") },
{ "tools-default-colors", GIMP_STOCK_DEFAULT_COLORS, { "tools-default-colors", GIMP_STOCK_DEFAULT_COLORS,
N_("_Default Colors"), "D", NULL, N_("_Default Colors"), "D", NULL,
@ -88,11 +81,18 @@ tools_actions_setup (GimpActionGroup *group,
GimpStringActionEntry entry; GimpStringActionEntry entry;
const gchar *stock_id; const gchar *stock_id;
const gchar *identifier; const gchar *identifier;
gchar *tmp;
gchar *name;
stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info)); stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info));
identifier = gimp_object_get_name (GIMP_OBJECT (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.stock_id = stock_id;
entry.label = tool_info->menu_path; entry.label = tool_info->menu_path;
entry.accelerator = tool_info->menu_accel; entry.accelerator = tool_info->menu_accel;
@ -103,6 +103,8 @@ tools_actions_setup (GimpActionGroup *group,
&entry, 1, &entry, 1,
G_CALLBACK (tools_select_cmd_callback), G_CALLBACK (tools_select_cmd_callback),
data); data);
g_free (name);
} }
} }
} }

View File

@ -53,11 +53,8 @@ static void view_actions_set_zoom (GimpActionGroup *group,
static GimpActionEntry view_actions[] = static GimpActionEntry view_actions[] =
{ {
{ "view-menu", NULL, { "view-menu", NULL, N_("_View") },
N_("/_View") }, { "view-zoom-menu", NULL, N_("_Zoom") },
{ "view-zoom-menu", NULL,
N_("_Zoom") },
{ "view-new", GTK_STOCK_NEW, { "view-new", GTK_STOCK_NEW,
N_("_New View"), "", NULL, N_("_New View"), "", NULL,
@ -131,7 +128,7 @@ static GimpToggleActionEntry view_toggle_actions[] =
TRUE, TRUE,
GIMP_HELP_VIEW_SHOW_GUIDES }, GIMP_HELP_VIEW_SHOW_GUIDES },
{ "view-snap-to-giudes", NULL, { "view-snap-to-guides", NULL,
N_("Sn_ap to Guides"), NULL, NULL, N_("Sn_ap to Guides"), NULL, NULL,
G_CALLBACK (view_snap_to_guides_cmd_callback), G_CALLBACK (view_snap_to_guides_cmd_callback),
TRUE, TRUE,

View File

@ -126,6 +126,10 @@ menus_init (Gimp *gimp)
image_menu_setup, image_menu_update, FALSE, image_menu_setup, image_menu_update, FALSE,
n_image_menu_entries, n_image_menu_entries,
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>", gimp_menu_factory_menu_register (global_menu_factory, "<Load>",
_("Open Menu"), _("Open Menu"),

View File

@ -126,6 +126,10 @@ menus_init (Gimp *gimp)
image_menu_setup, image_menu_update, FALSE, image_menu_setup, image_menu_update, FALSE,
n_image_menu_entries, n_image_menu_entries,
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>", gimp_menu_factory_menu_register (global_menu_factory, "<Load>",
_("Open Menu"), _("Open Menu"),

View File

@ -114,7 +114,7 @@ gimp_tools_init (Gimp *gimp)
/* paint tools */ /* paint tools */
gimp_dodgeburn_tool_register, gimp_dodge_burn_tool_register,
gimp_smudge_tool_register, gimp_smudge_tool_register,
gimp_convolve_tool_register, gimp_convolve_tool_register,
gimp_clone_tool_register, gimp_clone_tool_register,
@ -343,7 +343,7 @@ gimp_tools_register (GType tool_type,
{ {
paint_core_name = "GimpSmudge"; paint_core_name = "GimpSmudge";
} }
else if (tool_type == GIMP_TYPE_DODGEBURN_TOOL) else if (tool_type == GIMP_TYPE_DODGE_BURN_TOOL)
{ {
paint_core_name = "GimpDodgeBurn"; paint_core_name = "GimpDodgeBurn";
} }

View File

@ -39,18 +39,18 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static void gimp_dodgeburn_tool_class_init (GimpDodgeBurnToolClass *klass); static void gimp_dodge_burn_tool_class_init (GimpDodgeBurnToolClass *klass);
static void gimp_dodgeburn_tool_init (GimpDodgeBurnTool *dodgeburn); static void gimp_dodge_burn_tool_init (GimpDodgeBurnTool *dodgeburn);
static void gimp_dodgeburn_tool_modifier_key (GimpTool *tool, static void gimp_dodge_burn_tool_modifier_key (GimpTool *tool,
GdkModifierType key, GdkModifierType key,
gboolean press, gboolean press,
GdkModifierType state, GdkModifierType state,
GimpDisplay *gdisp); GimpDisplay *gdisp);
static void gimp_dodgeburn_tool_cursor_update (GimpTool *tool, static void gimp_dodge_burn_tool_cursor_update (GimpTool *tool,
GimpCoords *coords, GimpCoords *coords,
GdkModifierType state, GdkModifierType state,
GimpDisplay *gdisp); GimpDisplay *gdisp);
static GtkWidget * gimp_dodge_burn_options_gui (GimpToolOptions *tool_options); static GtkWidget * gimp_dodge_burn_options_gui (GimpToolOptions *tool_options);
@ -59,14 +59,14 @@ static GimpPaintToolClass *parent_class = NULL;
void void
gimp_dodgeburn_tool_register (GimpToolRegisterCallback callback, gimp_dodge_burn_tool_register (GimpToolRegisterCallback callback,
gpointer data) gpointer data)
{ {
(* callback) (GIMP_TYPE_DODGEBURN_TOOL, (* callback) (GIMP_TYPE_DODGE_BURN_TOOL,
GIMP_TYPE_DODGE_BURN_OPTIONS, GIMP_TYPE_DODGE_BURN_OPTIONS,
gimp_dodge_burn_options_gui, gimp_dodge_burn_options_gui,
GIMP_PAINT_OPTIONS_CONTEXT_MASK, GIMP_PAINT_OPTIONS_CONTEXT_MASK,
"gimp-dodgeburn-tool", "gimp-dodge-burn-tool",
_("Dodge/Burn"), _("Dodge/Burn"),
_("Dodge or Burn strokes"), _("Dodge or Burn strokes"),
N_("/Tools/Paint Tools/Dod_geBurn"), "<shift>D", N_("/Tools/Paint Tools/Dod_geBurn"), "<shift>D",
@ -76,7 +76,7 @@ gimp_dodgeburn_tool_register (GimpToolRegisterCallback callback,
} }
GType GType
gimp_dodgeburn_tool_get_type (void) gimp_dodge_burn_tool_get_type (void)
{ {
static GType tool_type = 0; static GType tool_type = 0;
@ -87,12 +87,12 @@ gimp_dodgeburn_tool_get_type (void)
sizeof (GimpDodgeBurnToolClass), sizeof (GimpDodgeBurnToolClass),
(GBaseInitFunc) NULL, (GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL, (GBaseFinalizeFunc) NULL,
(GClassInitFunc) gimp_dodgeburn_tool_class_init, (GClassInitFunc) gimp_dodge_burn_tool_class_init,
NULL, /* class_finalize */ NULL, /* class_finalize */
NULL, /* class_data */ NULL, /* class_data */
sizeof (GimpDodgeBurnTool), sizeof (GimpDodgeBurnTool),
0, /* n_preallocs */ 0, /* n_preallocs */
(GInstanceInitFunc) gimp_dodgeburn_tool_init, (GInstanceInitFunc) gimp_dodge_burn_tool_init,
}; };
tool_type = g_type_register_static (GIMP_TYPE_PAINT_TOOL, tool_type = g_type_register_static (GIMP_TYPE_PAINT_TOOL,
@ -104,7 +104,7 @@ gimp_dodgeburn_tool_get_type (void)
} }
static void static void
gimp_dodgeburn_tool_class_init (GimpDodgeBurnToolClass *klass) gimp_dodge_burn_tool_class_init (GimpDodgeBurnToolClass *klass)
{ {
GimpToolClass *tool_class; GimpToolClass *tool_class;
@ -112,12 +112,12 @@ gimp_dodgeburn_tool_class_init (GimpDodgeBurnToolClass *klass)
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
tool_class->modifier_key = gimp_dodgeburn_tool_modifier_key; tool_class->modifier_key = gimp_dodge_burn_tool_modifier_key;
tool_class->cursor_update = gimp_dodgeburn_tool_cursor_update; tool_class->cursor_update = gimp_dodge_burn_tool_cursor_update;
} }
static void static void
gimp_dodgeburn_tool_init (GimpDodgeBurnTool *dodgeburn) gimp_dodge_burn_tool_init (GimpDodgeBurnTool *dodgeburn)
{ {
GimpTool *tool; GimpTool *tool;
GimpPaintTool *paint_tool; GimpPaintTool *paint_tool;
@ -132,11 +132,11 @@ gimp_dodgeburn_tool_init (GimpDodgeBurnTool *dodgeburn)
} }
static void static void
gimp_dodgeburn_tool_modifier_key (GimpTool *tool, gimp_dodge_burn_tool_modifier_key (GimpTool *tool,
GdkModifierType key, GdkModifierType key,
gboolean press, gboolean press,
GdkModifierType state, GdkModifierType state,
GimpDisplay *gdisp) GimpDisplay *gdisp)
{ {
GimpDodgeBurnOptions *options; GimpDodgeBurnOptions *options;
@ -164,10 +164,10 @@ gimp_dodgeburn_tool_modifier_key (GimpTool *tool,
} }
static void static void
gimp_dodgeburn_tool_cursor_update (GimpTool *tool, gimp_dodge_burn_tool_cursor_update (GimpTool *tool,
GimpCoords *coords, GimpCoords *coords,
GdkModifierType state, GdkModifierType state,
GimpDisplay *gdisp) GimpDisplay *gdisp)
{ {
GimpDodgeBurnOptions *options; GimpDodgeBurnOptions *options;

View File

@ -23,11 +23,11 @@
#include "gimppainttool.h" #include "gimppainttool.h"
#define GIMP_TYPE_DODGEBURN_TOOL (gimp_dodgeburn_tool_get_type ()) #define GIMP_TYPE_DODGE_BURN_TOOL (gimp_dodge_burn_tool_get_type ())
#define GIMP_DODGEBURN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DODGEBURN_TOOL, GimpDodgeBurnTool)) #define GIMP_DODGE_BURN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_DODGE_BURN_TOOL, GimpDodgeBurnTool))
#define GIMP_IS_DODGEBURN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DODGEBURN_TOOL)) #define GIMP_IS_DODGE_BURN_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_DODGE_BURN_TOOL))
#define GIMP_DODGEBURN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DODGEBURN_TOOL, GimpDodgeBurnToolClass)) #define GIMP_DODGE_BURN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_DODGE_BURN_TOOL, GimpDodgeBurnToolClass))
#define GIMP_IS_DODGEBURN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DODGEBURN_TOOL)) #define GIMP_IS_DODGE_BURN_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_DODGE_BURN_TOOL))
typedef struct _GimpDodgeBurnTool GimpDodgeBurnTool; typedef struct _GimpDodgeBurnTool GimpDodgeBurnTool;
@ -44,10 +44,10 @@ struct _GimpDodgeBurnToolClass
}; };
void gimp_dodgeburn_tool_register (GimpToolRegisterCallback callback, void gimp_dodge_burn_tool_register (GimpToolRegisterCallback callback,
gpointer data); gpointer data);
GType gimp_dodgeburn_tool_get_type (void) G_GNUC_CONST; GType gimp_dodge_burn_tool_get_type (void) G_GNUC_CONST;
#endif /* __GIMP_DODGEBURN_TOOL_H__ */ #endif /* __GIMP_DODGEBURN_TOOL_H__ */

View File

@ -122,9 +122,9 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
_("Mode:"), 1.0, 0.5, _("Mode:"), 1.0, 0.5,
optionmenu, 2, TRUE); optionmenu, 2, TRUE);
if (tool_type == GIMP_TYPE_ERASER_TOOL || if (tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_SMUDGE_TOOL) tool_type == GIMP_TYPE_SMUDGE_TOOL)
{ {
gtk_widget_set_sensitive (optionmenu, FALSE); gtk_widget_set_sensitive (optionmenu, FALSE);
@ -227,10 +227,10 @@ gimp_paint_options_gui (GimpToolOptions *tool_options)
} }
/* the "hard edge" toggle */ /* the "hard edge" toggle */
if (tool_type == GIMP_TYPE_ERASER_TOOL || if (tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_CLONE_TOOL || tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_SMUDGE_TOOL) tool_type == GIMP_TYPE_SMUDGE_TOOL)
{ {
button = gimp_prop_check_button_new (config, "hard", _("Hard Edge")); button = gimp_prop_check_button_new (config, "hard", _("Hard Edge"));
@ -284,7 +284,7 @@ pressure_options_gui (GimpPressureOptions *pressure,
if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) || if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) ||
tool_type == GIMP_TYPE_CLONE_TOOL || tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL || tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_SMUDGE_TOOL) tool_type == GIMP_TYPE_SMUDGE_TOOL)
{ {
@ -298,7 +298,7 @@ pressure_options_gui (GimpPressureOptions *pressure,
/* the opacity toggle */ /* the opacity toggle */
if (tool_type == GIMP_TYPE_CLONE_TOOL || if (tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL || tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_PAINTBRUSH_TOOL || tool_type == GIMP_TYPE_PAINTBRUSH_TOOL ||
tool_type == GIMP_TYPE_PENCIL_TOOL) tool_type == GIMP_TYPE_PENCIL_TOOL)
@ -313,7 +313,7 @@ pressure_options_gui (GimpPressureOptions *pressure,
if (tool_type == GIMP_TYPE_AIRBRUSH_TOOL || if (tool_type == GIMP_TYPE_AIRBRUSH_TOOL ||
tool_type == GIMP_TYPE_CLONE_TOOL || tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_PAINTBRUSH_TOOL || tool_type == GIMP_TYPE_PAINTBRUSH_TOOL ||
tool_type == GIMP_TYPE_SMUDGE_TOOL) tool_type == GIMP_TYPE_SMUDGE_TOOL)
{ {
@ -338,7 +338,7 @@ pressure_options_gui (GimpPressureOptions *pressure,
if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) || if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) ||
tool_type == GIMP_TYPE_CLONE_TOOL || tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL) tool_type == GIMP_TYPE_ERASER_TOOL)
{ {
button = gimp_prop_check_button_new (config, "pressure-size", button = gimp_prop_check_button_new (config, "pressure-size",
@ -376,7 +376,7 @@ fade_options_gui (GimpFadeOptions *fade,
if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) || if (g_type_is_a (tool_type, GIMP_TYPE_PAINTBRUSH_TOOL) ||
tool_type == GIMP_TYPE_CLONE_TOOL || tool_type == GIMP_TYPE_CLONE_TOOL ||
tool_type == GIMP_TYPE_CONVOLVE_TOOL || tool_type == GIMP_TYPE_CONVOLVE_TOOL ||
tool_type == GIMP_TYPE_DODGEBURN_TOOL || tool_type == GIMP_TYPE_DODGE_BURN_TOOL ||
tool_type == GIMP_TYPE_ERASER_TOOL || tool_type == GIMP_TYPE_ERASER_TOOL ||
tool_type == GIMP_TYPE_SMUDGE_TOOL) tool_type == GIMP_TYPE_SMUDGE_TOOL)
{ {

View File

@ -176,7 +176,7 @@ gimp_action_factory_group_new (GimpActionFactory *factory,
} }
g_warning ("%s: no entry registered for \"%s\"", g_warning ("%s: no entry registered for \"%s\"",
G_GNUC_FUNCTION, identifier); G_STRFUNC, identifier);
return NULL; return NULL;
} }

View File

@ -2,7 +2,7 @@
* Copyright (C) 1995 Spencer Kimball and Peter Mattis * Copyright (C) 1995 Spencer Kimball and Peter Mattis
* *
* gimpmenufactory.c * gimpmenufactory.c
* Copyright (C) 2001 Michael Natterer <mitch@gimp.org> * Copyright (C) 2001-2004 Michael Natterer <mitch@gimp.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -207,7 +207,7 @@ gimp_menu_factory_menu_new (GimpMenuFactory *factory,
} }
g_warning ("%s: no entry registered for \"%s\"", g_warning ("%s: no entry registered for \"%s\"",
G_GNUC_FUNCTION, identifier); G_STRFUNC, identifier);
return NULL; return NULL;
} }
@ -254,7 +254,7 @@ gimp_menu_factory_manager_register (GimpMenuFactory *factory,
} }
g_warning ("%s: no entry registered for \"%s\"", g_warning ("%s: no entry registered for \"%s\"",
G_GNUC_FUNCTION, identifier); G_STRFUNC, identifier);
} }
GtkUIManager * GtkUIManager *
@ -298,7 +298,7 @@ gimp_menu_factory_manager_new (GimpMenuFactory *factory,
} }
g_warning ("%s: no entry registered for \"%s\"", g_warning ("%s: no entry registered for \"%s\"",
G_GNUC_FUNCTION, identifier); G_STRFUNC, identifier);
return NULL; return NULL;
} }

View File

@ -2,7 +2,7 @@
* Copyright (C) 1995 Spencer Kimball and Peter Mattis * Copyright (C) 1995 Spencer Kimball and Peter Mattis
* *
* gimpmenufactory.h * gimpmenufactory.h
* Copyright (C) 2003 Michael Natterer <mitch@gimp.org> * Copyright (C) 2003-2004 Michael Natterer <mitch@gimp.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
<!DOCTYPE ui SYSTEM "gtkuimanager.dtd"> <!DOCTYPE ui SYSTEM "gtkuimanager.dtd">
<ui> <ui>
<menubar> <menubar action="image-menubar">
<menu action="file-menu"> <menu action="file-menu">
<menuitem action="file-new" /> <menuitem action="file-new" />
@ -37,8 +37,8 @@
<menuitem action="edit-paste-as-new" /> <menuitem action="edit-paste-as-new" />
<menu action="edit-buffer-menu"> <menu action="edit-buffer-menu">
<menuitem action="edit-named-cut" /> <menuitem action="edit-named-cut" />
<menuitem action="edit-names-copy" /> <menuitem action="edit-named-copy" />
<menuitem action="edit-paste-named" /> <menuitem action="edit-named-paste" />
</menu> </menu>
<separator /> <separator />
<menuitem action="edit-clear" /> <menuitem action="edit-clear" />
@ -46,7 +46,7 @@
<menuitem action="edit-fill-bg" /> <menuitem action="edit-fill-bg" />
<menuitem action="edit-fill-pattern" /> <menuitem action="edit-fill-pattern" />
<menuitem action="edit-stroke" /> <menuitem action="edit-stroke" />
<menuitem action="vectors-stroke-vectors" /> <menuitem action="vectors-stroke" />
<separator /> <separator />
</menu> </menu>
@ -66,16 +66,17 @@
<separator /> <separator />
<menuitem action="select-toggle-qmask" /> <menuitem action="select-toggle-qmask" />
<menuitem action="select-save" /> <menuitem action="select-save" />
<menuitem action="select-to-path" /> <menuitem action="select-to-vectors" />
</menu> </menu>
<menu action="view-menu"> <menu action="view-menu">
<menuitem action="view-new" /> <menuitem action="view-new" />
<menuitem action="dot-for-dot" /> <menuitem action="view-dot-for-dot" />
<menu action="view-zoom-menu"> <menu action="view-zoom-menu">
<menuitem action="view-zoom-out" /> <menuitem action="view-zoom-out" />
<menuitem action="view-zoom-in" /> <menuitem action="view-zoom-in" />
<menuitem action="view-zoom-fit" /> <menuitem action="view-zoom-fit" />
<separator />
<menuitem action="view-zoom-16-1" /> <menuitem action="view-zoom-16-1" />
<menuitem action="view-zoom-8-1" /> <menuitem action="view-zoom-8-1" />
<menuitem action="view-zoom-4-1" /> <menuitem action="view-zoom-4-1" />
@ -90,7 +91,7 @@
</menu> </menu>
<separator /> <separator />
<menuitem action="view-info-window" /> <menuitem action="view-info-window" />
<menuitem action="view-navigation" /> <menuitem action="view-navigation-window" />
<menuitem action="view-display-filters" /> <menuitem action="view-display-filters" />
<separator /> <separator />
<menuitem action="view-show-selection" /> <menuitem action="view-show-selection" />
@ -212,7 +213,7 @@
</menu> </menu>
<menu action="tools-menu"> <menu action="tools-menu">
<menuitem action="dialogs-show-toolbox" /> <menuitem action="dialogs-toolbox" />
<menuitem action="tools-default-colors" /> <menuitem action="tools-default-colors" />
<menuitem action="tools-swap-colors" /> <menuitem action="tools-swap-colors" />
<separator /> <separator />
@ -254,9 +255,9 @@
<menuitem action="tools-curves" /> <menuitem action="tools-curves" />
<menuitem action="tools-posterize" /> <menuitem action="tools-posterize" />
</menu> </menu>
<menuitem action="tools-vectors" /> <menuitem action="tools-vector" />
<menuitem action="tools-color-picker" /> <menuitem action="tools-color-picker" />
<menuitem action="tools-zoom" /> <menuitem action="tools-magnify" />
<menuitem action="tools-measure" /> <menuitem action="tools-measure" />
<menuitem action="tools-text" /> <menuitem action="tools-text" />
</menu> </menu>
@ -282,7 +283,7 @@
<menuitem action="dialogs-colors" /> <menuitem action="dialogs-colors" />
<menuitem action="dialogs-brushes" /> <menuitem action="dialogs-brushes" />
<menuitem action="dialogs-patterns" /> <menuitem action="dialogs-patterns" />
<menuitem action="dialogs-graidents" /> <menuitem action="dialogs-gradients" />
<menuitem action="dialogs-palettes" /> <menuitem action="dialogs-palettes" />
<menuitem action="dialogs-fonts" /> <menuitem action="dialogs-fonts" />
<menuitem action="dialogs-buffers" /> <menuitem action="dialogs-buffers" />
@ -295,6 +296,52 @@
</menu> </menu>
<menu action="plug-in-menu"> <menu action="plug-in-menu">
<menuitem action="plug-in-repeat" />
<menuitem action="plug-in-reshow" />
<separator />
<menu action="plug-in-blur-menu">
</menu>
<menu action="plug-in-colors-menu">
<menu action="plug-in-colors-map-menu">
</menu>
</menu>
<menu action="plug-in-noise-menu">
</menu>
<menu action="plug-in-edge-detect-menu">
</menu>
<menu action="plug-in-enhance-menu">
</menu>
<menu action="plug-in-generic-menu">
</menu>
<separator />
<menu action="plug-in-glass-effects-menu">
</menu>
<menu action="plug-in-light-effects-menu">
</menu>
<menu action="plug-in-distorts-menu">
</menu>
<menu action="plug-in-artistic-menu">
</menu>
<menu action="plug-in-map-menu">
</menu>
<menu action="plug-in-render-menu">
<menu action="plug-in-render-clouds-menu">
</menu>
<menu action="plug-in-render-nature-menu">
</menu>
<menu action="plug-in-render-pattern-menu">
</menu>
</menu>
<menu action="plug-in-web-menu">
</menu>
<separator />
<menu action="plug-in-animation-menu">
</menu>
<menu action="plug-in-combine-menu">
</menu>
<separator />
<menu action="plug-in-toys-menu">
</menu>
</menu> </menu>
</menubar> </menubar>