take const arrays of action entries.

2006-04-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactiongroup.[ch]: take const arrays of action
	entries.

	* app/actions/*-actions.c: declare action arrays as const.
This commit is contained in:
Sven Neumann
2006-04-10 08:06:18 +00:00
committed by Sven Neumann
parent 03eebd5358
commit 12920b5a17
42 changed files with 202 additions and 195 deletions

View File

@ -1,3 +1,10 @@
2006-04-10 Sven Neumann <sven@gimp.org>
* app/widgets/gimpactiongroup.[ch]: take const arrays of action
entries.
* app/actions/*-actions.c: declare action arrays as const.
2006-04-10 Michael Natterer <mitch@gimp.org> 2006-04-10 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-ins.[ch]: removed the plug_ins_file_foo() * app/plug-in/plug-ins.[ch]: removed the plug_ins_file_foo()

View File

@ -36,14 +36,14 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry brush_editor_actions[] = static const GimpActionEntry brush_editor_actions[] =
{ {
{ "brush-editor-popup", GIMP_STOCK_BRUSH, { "brush-editor-popup", GIMP_STOCK_BRUSH,
N_("Brush Editor Menu"), NULL, NULL, NULL, N_("Brush Editor Menu"), NULL, NULL, NULL,
GIMP_HELP_BRUSH_EDITOR_DIALOG } GIMP_HELP_BRUSH_EDITOR_DIALOG }
}; };
static GimpToggleActionEntry brush_editor_toggle_actions[] = static const GimpToggleActionEntry brush_editor_toggle_actions[] =
{ {
{ "brush-editor-edit-active", GIMP_STOCK_LINKED, { "brush-editor-edit-active", GIMP_STOCK_LINKED,
N_("Edit Active Brush"), NULL, NULL, N_("Edit Active Brush"), NULL, NULL,

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry brushes_actions[] = static const GimpActionEntry brushes_actions[] =
{ {
{ "brushes-popup", GIMP_STOCK_BRUSH, { "brushes-popup", GIMP_STOCK_BRUSH,
N_("Brushes Menu"), NULL, NULL, NULL, N_("Brushes Menu"), NULL, NULL, NULL,
@ -80,7 +80,7 @@ static GimpActionEntry brushes_actions[] =
GIMP_HELP_BRUSH_REFRESH } GIMP_HELP_BRUSH_REFRESH }
}; };
static GimpStringActionEntry brushes_edit_actions[] = static const GimpStringActionEntry brushes_edit_actions[] =
{ {
{ "brushes-edit", GTK_STOCK_EDIT, { "brushes-edit", GTK_STOCK_EDIT,
N_("_Edit Brush..."), NULL, N_("_Edit Brush..."), NULL,

View File

@ -36,7 +36,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry buffers_actions[] = static const GimpActionEntry buffers_actions[] =
{ {
{ "buffers-popup", GIMP_STOCK_BUFFER, { "buffers-popup", GIMP_STOCK_BUFFER,
N_("Buffers Menu"), NULL, NULL, NULL, N_("Buffers Menu"), NULL, NULL, NULL,

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry channels_actions[] = static const GimpActionEntry channels_actions[] =
{ {
{ "channels-popup", GIMP_STOCK_CHANNELS, { "channels-popup", GIMP_STOCK_CHANNELS,
N_("Channels Menu"), NULL, NULL, NULL, N_("Channels Menu"), NULL, NULL, NULL,
@ -99,7 +99,7 @@ static GimpActionEntry channels_actions[] =
GIMP_HELP_CHANNEL_LOWER_TO_BOTTOM } GIMP_HELP_CHANNEL_LOWER_TO_BOTTOM }
}; };
static GimpEnumActionEntry channels_to_selection_actions[] = static const GimpEnumActionEntry channels_to_selection_actions[] =
{ {
{ "channels-selection-replace", GIMP_STOCK_SELECTION_REPLACE, { "channels-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Channel to Sele_ction"), NULL, N_("Channel to Sele_ction"), NULL,

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry colormap_editor_actions[] = static const GimpActionEntry colormap_editor_actions[] =
{ {
{ "colormap-editor-popup", GIMP_STOCK_INDEXED_PALETTE, { "colormap-editor-popup", GIMP_STOCK_INDEXED_PALETTE,
N_("Colormap Menu"), NULL, NULL, NULL, N_("Colormap Menu"), NULL, NULL, NULL,
@ -50,7 +50,7 @@ static GimpActionEntry colormap_editor_actions[] =
GIMP_HELP_INDEXED_PALETTE_EDIT } GIMP_HELP_INDEXED_PALETTE_EDIT }
}; };
static GimpEnumActionEntry colormap_editor_add_color_actions[] = static const GimpEnumActionEntry colormap_editor_add_color_actions[] =
{ {
{ "colormap-editor-add-color-from-fg", GTK_STOCK_ADD, { "colormap-editor-add-color-from-fg", GTK_STOCK_ADD,
N_("_Add Color from FG"), "", N_("_Add Color from FG"), "",

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry colormap_editor_actions[] = static const GimpActionEntry colormap_editor_actions[] =
{ {
{ "colormap-editor-popup", GIMP_STOCK_INDEXED_PALETTE, { "colormap-editor-popup", GIMP_STOCK_INDEXED_PALETTE,
N_("Colormap Menu"), NULL, NULL, NULL, N_("Colormap Menu"), NULL, NULL, NULL,
@ -50,7 +50,7 @@ static GimpActionEntry colormap_editor_actions[] =
GIMP_HELP_INDEXED_PALETTE_EDIT } GIMP_HELP_INDEXED_PALETTE_EDIT }
}; };
static GimpEnumActionEntry colormap_editor_add_color_actions[] = static const GimpEnumActionEntry colormap_editor_add_color_actions[] =
{ {
{ "colormap-editor-add-color-from-fg", GTK_STOCK_ADD, { "colormap-editor-add-color-from-fg", GTK_STOCK_ADD,
N_("_Add Color from FG"), "", N_("_Add Color from FG"), "",

View File

@ -41,7 +41,7 @@
/* local function prototypes */ /* local function prototypes */
static GimpActionEntry context_actions[] = static const GimpActionEntry context_actions[] =
{ {
{ "context-menu", NULL, N_("_Context") }, { "context-menu", NULL, N_("_Context") },
{ "context-colors-menu", GIMP_STOCK_DEFAULT_COLORS, N_("_Colors") }, { "context-colors-menu", GIMP_STOCK_DEFAULT_COLORS, N_("_Colors") },
@ -74,7 +74,7 @@ static GimpActionEntry context_actions[] =
GIMP_HELP_TOOLBOX_SWAP_COLORS } GIMP_HELP_TOOLBOX_SWAP_COLORS }
}; };
static GimpEnumActionEntry context_foreground_red_actions[] = static const GimpEnumActionEntry context_foreground_red_actions[] =
{ {
{ "context-foreground-red-set", GIMP_STOCK_CHANNEL_RED, { "context-foreground-red-set", GIMP_STOCK_CHANNEL_RED,
"Foreground Red Set", NULL, NULL, "Foreground Red Set", NULL, NULL,
@ -106,7 +106,7 @@ static GimpEnumActionEntry context_foreground_red_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_foreground_green_actions[] = static const GimpEnumActionEntry context_foreground_green_actions[] =
{ {
{ "context-foreground-green-set", GIMP_STOCK_CHANNEL_GREEN, { "context-foreground-green-set", GIMP_STOCK_CHANNEL_GREEN,
"Foreground Green Set", NULL, NULL, "Foreground Green Set", NULL, NULL,
@ -138,7 +138,7 @@ static GimpEnumActionEntry context_foreground_green_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_foreground_blue_actions[] = static const GimpEnumActionEntry context_foreground_blue_actions[] =
{ {
{ "context-foreground-blue-set", GIMP_STOCK_CHANNEL_BLUE, { "context-foreground-blue-set", GIMP_STOCK_CHANNEL_BLUE,
"Foreground Blue Set", NULL, NULL, "Foreground Blue Set", NULL, NULL,
@ -170,7 +170,7 @@ static GimpEnumActionEntry context_foreground_blue_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_red_actions[] = static const GimpEnumActionEntry context_background_red_actions[] =
{ {
{ "context-background-red-set", GIMP_STOCK_CHANNEL_RED, { "context-background-red-set", GIMP_STOCK_CHANNEL_RED,
"Background Red Set", NULL, NULL, "Background Red Set", NULL, NULL,
@ -202,7 +202,7 @@ static GimpEnumActionEntry context_background_red_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_green_actions[] = static const GimpEnumActionEntry context_background_green_actions[] =
{ {
{ "context-background-green-set", GIMP_STOCK_CHANNEL_GREEN, { "context-background-green-set", GIMP_STOCK_CHANNEL_GREEN,
"Background Green Set", NULL, NULL, "Background Green Set", NULL, NULL,
@ -234,7 +234,7 @@ static GimpEnumActionEntry context_background_green_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_blue_actions[] = static const GimpEnumActionEntry context_background_blue_actions[] =
{ {
{ "context-background-blue-set", GIMP_STOCK_CHANNEL_BLUE, { "context-background-blue-set", GIMP_STOCK_CHANNEL_BLUE,
"Background Blue Set", NULL, NULL, "Background Blue Set", NULL, NULL,
@ -266,7 +266,7 @@ static GimpEnumActionEntry context_background_blue_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_foreground_hue_actions[] = static const GimpEnumActionEntry context_foreground_hue_actions[] =
{ {
{ "context-foreground-hue-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-foreground-hue-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Foreground Hue Set", NULL, NULL, "Foreground Hue Set", NULL, NULL,
@ -298,7 +298,7 @@ static GimpEnumActionEntry context_foreground_hue_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_foreground_saturation_actions[] = static const GimpEnumActionEntry context_foreground_saturation_actions[] =
{ {
{ "context-foreground-saturation-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-foreground-saturation-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Foreground Saturation Set", NULL, NULL, "Foreground Saturation Set", NULL, NULL,
@ -330,7 +330,7 @@ static GimpEnumActionEntry context_foreground_saturation_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_foreground_value_actions[] = static const GimpEnumActionEntry context_foreground_value_actions[] =
{ {
{ "context-foreground-value-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-foreground-value-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Foreground Value Set", NULL, NULL, "Foreground Value Set", NULL, NULL,
@ -362,7 +362,7 @@ static GimpEnumActionEntry context_foreground_value_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_hue_actions[] = static const GimpEnumActionEntry context_background_hue_actions[] =
{ {
{ "context-background-hue-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-background-hue-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Background Hue Set", NULL, NULL, "Background Hue Set", NULL, NULL,
@ -394,7 +394,7 @@ static GimpEnumActionEntry context_background_hue_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_saturation_actions[] = static const GimpEnumActionEntry context_background_saturation_actions[] =
{ {
{ "context-background-saturation-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-background-saturation-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Background Saturation Set", NULL, NULL, "Background Saturation Set", NULL, NULL,
@ -426,7 +426,7 @@ static GimpEnumActionEntry context_background_saturation_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_background_value_actions[] = static const GimpEnumActionEntry context_background_value_actions[] =
{ {
{ "context-background-value-set", GIMP_STOCK_TOOL_HUE_SATURATION, { "context-background-value-set", GIMP_STOCK_TOOL_HUE_SATURATION,
"Background Value Set", NULL, NULL, "Background Value Set", NULL, NULL,
@ -458,7 +458,7 @@ static GimpEnumActionEntry context_background_value_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_opacity_actions[] = static const GimpEnumActionEntry context_opacity_actions[] =
{ {
{ "context-opacity-set", GIMP_STOCK_TRANSPARENCY, { "context-opacity-set", GIMP_STOCK_TRANSPARENCY,
"Set Transparency", NULL, NULL, "Set Transparency", NULL, NULL,
@ -490,7 +490,7 @@ static GimpEnumActionEntry context_opacity_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_paint_mode_actions[] = static const GimpEnumActionEntry context_paint_mode_actions[] =
{ {
{ "context-paint-mode-first", GIMP_STOCK_TOOL_PENCIL, { "context-paint-mode-first", GIMP_STOCK_TOOL_PENCIL,
"First Paint Mode", NULL, NULL, "First Paint Mode", NULL, NULL,
@ -510,7 +510,7 @@ static GimpEnumActionEntry context_paint_mode_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_tool_select_actions[] = static const GimpEnumActionEntry context_tool_select_actions[] =
{ {
{ "context-tool-select-set", GIMP_STOCK_TOOLS, { "context-tool-select-set", GIMP_STOCK_TOOLS,
"Select Tool by Index", NULL, NULL, "Select Tool by Index", NULL, NULL,
@ -534,7 +534,7 @@ static GimpEnumActionEntry context_tool_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_brush_select_actions[] = static const GimpEnumActionEntry context_brush_select_actions[] =
{ {
{ "context-brush-select-set", GIMP_STOCK_BRUSH, { "context-brush-select-set", GIMP_STOCK_BRUSH,
"Select Brush by Index", NULL, NULL, "Select Brush by Index", NULL, NULL,
@ -558,7 +558,7 @@ static GimpEnumActionEntry context_brush_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_pattern_select_actions[] = static const GimpEnumActionEntry context_pattern_select_actions[] =
{ {
{ "context-pattern-select-set", GIMP_STOCK_PATTERN, { "context-pattern-select-set", GIMP_STOCK_PATTERN,
"Select Pattern by Index", NULL, NULL, "Select Pattern by Index", NULL, NULL,
@ -582,7 +582,7 @@ static GimpEnumActionEntry context_pattern_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_palette_select_actions[] = static const GimpEnumActionEntry context_palette_select_actions[] =
{ {
{ "context-palette-select-set", GIMP_STOCK_PALETTE, { "context-palette-select-set", GIMP_STOCK_PALETTE,
"Select Palette by Index", NULL, NULL, "Select Palette by Index", NULL, NULL,
@ -606,7 +606,7 @@ static GimpEnumActionEntry context_palette_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_gradient_select_actions[] = static const GimpEnumActionEntry context_gradient_select_actions[] =
{ {
{ "context-gradient-select-set", GIMP_STOCK_GRADIENT, { "context-gradient-select-set", GIMP_STOCK_GRADIENT,
"Select Gradient by Index", NULL, NULL, "Select Gradient by Index", NULL, NULL,
@ -630,7 +630,7 @@ static GimpEnumActionEntry context_gradient_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_font_select_actions[] = static const GimpEnumActionEntry context_font_select_actions[] =
{ {
{ "context-font-select-set", GIMP_STOCK_FONT, { "context-font-select-set", GIMP_STOCK_FONT,
"Select Font by Index", NULL, NULL, "Select Font by Index", NULL, NULL,
@ -654,7 +654,7 @@ static GimpEnumActionEntry context_font_select_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_brush_shape_actions[] = static const GimpEnumActionEntry context_brush_shape_actions[] =
{ {
{ "context-brush-shape-circle", GIMP_STOCK_BRUSH, { "context-brush-shape-circle", GIMP_STOCK_BRUSH,
"Circular Brush", NULL, NULL, "Circular Brush", NULL, NULL,
@ -670,7 +670,7 @@ static GimpEnumActionEntry context_brush_shape_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry context_brush_radius_actions[] = static const GimpEnumActionEntry context_brush_radius_actions[] =
{ {
{ "context-brush-radius-set", GIMP_STOCK_BRUSH, { "context-brush-radius-set", GIMP_STOCK_BRUSH,
"Set Brush Radius", NULL, NULL, "Set Brush Radius", NULL, NULL,
@ -702,7 +702,7 @@ static GimpEnumActionEntry context_brush_radius_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry context_brush_spikes_actions[] = static const GimpEnumActionEntry context_brush_spikes_actions[] =
{ {
{ "context-brush-spikes-set", GIMP_STOCK_BRUSH, { "context-brush-spikes-set", GIMP_STOCK_BRUSH,
"Set Brush Spikes", NULL, NULL, "Set Brush Spikes", NULL, NULL,
@ -734,7 +734,7 @@ static GimpEnumActionEntry context_brush_spikes_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry context_brush_hardness_actions[] = static const GimpEnumActionEntry context_brush_hardness_actions[] =
{ {
{ "context-brush-hardness-set", GIMP_STOCK_BRUSH, { "context-brush-hardness-set", GIMP_STOCK_BRUSH,
"Set Brush Hardness", NULL, NULL, "Set Brush Hardness", NULL, NULL,
@ -766,7 +766,7 @@ static GimpEnumActionEntry context_brush_hardness_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry context_brush_aspect_actions[] = static const GimpEnumActionEntry context_brush_aspect_actions[] =
{ {
{ "context-brush-aspect-set", GIMP_STOCK_BRUSH, { "context-brush-aspect-set", GIMP_STOCK_BRUSH,
"Set Brush Aspect", NULL, NULL, "Set Brush Aspect", NULL, NULL,
@ -798,7 +798,7 @@ static GimpEnumActionEntry context_brush_aspect_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry context_brush_angle_actions[] = static const GimpEnumActionEntry context_brush_angle_actions[] =
{ {
{ "context-brush-angle-set", GIMP_STOCK_BRUSH, { "context-brush-angle-set", GIMP_STOCK_BRUSH,
"Set Brush Angle", NULL, NULL, "Set Brush Angle", NULL, NULL,

View File

@ -34,14 +34,14 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry cursor_info_actions[] = static const GimpActionEntry cursor_info_actions[] =
{ {
{ "cursor-info-popup", GIMP_STOCK_CURSOR, { "cursor-info-popup", GIMP_STOCK_CURSOR,
N_("Pointer Information Menu"), NULL, NULL, NULL, N_("Pointer Information Menu"), NULL, NULL, NULL,
GIMP_HELP_POINTER_INFO_DIALOG } GIMP_HELP_POINTER_INFO_DIALOG }
}; };
static GimpToggleActionEntry cursor_info_toggle_actions[] = static const GimpToggleActionEntry cursor_info_toggle_actions[] =
{ {
{ "cursor-info-sample-merged", NULL, { "cursor-info-sample-merged", NULL,
N_("_Sample Merged"), "", N_("_Sample Merged"), "",

View File

@ -29,9 +29,10 @@
#include "debug-actions.h" #include "debug-actions.h"
#include "debug-commands.h" #include "debug-commands.h"
#ifdef ENABLE_DEBUG_MENU #ifdef ENABLE_DEBUG_MENU
static GimpActionEntry debug_actions[] = static const GimpActionEntry debug_actions[] =
{ {
{ "debug-menu", NULL, "D_ebug" }, { "debug-menu", NULL, "D_ebug" },

View File

@ -33,7 +33,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry dialogs_actions[] = static const GimpActionEntry dialogs_actions[] =
{ {
{ "dialogs-menu", NULL, N_("_Dialogs") }, { "dialogs-menu", NULL, N_("_Dialogs") },
{ "dialogs-new-dock-menu", NULL, N_("Create New Doc_k") }, { "dialogs-new-dock-menu", NULL, N_("Create New Doc_k") },
@ -59,7 +59,7 @@ static GimpActionEntry dialogs_actions[] =
GIMP_HELP_TOOLBOX } GIMP_HELP_TOOLBOX }
}; };
GimpStringActionEntry dialogs_dockable_actions[] = const GimpStringActionEntry dialogs_dockable_actions[] =
{ {
{ "dialogs-tool-options", GIMP_STOCK_TOOL_OPTIONS, { "dialogs-tool-options", GIMP_STOCK_TOOL_OPTIONS,
N_("Tool _Options"), NULL, N_("Tool Options"), N_("Tool _Options"), NULL, N_("Tool Options"),
@ -184,7 +184,7 @@ GimpStringActionEntry dialogs_dockable_actions[] =
gint n_dialogs_dockable_actions = G_N_ELEMENTS (dialogs_dockable_actions); gint n_dialogs_dockable_actions = G_N_ELEMENTS (dialogs_dockable_actions);
static GimpStringActionEntry dialogs_toplevel_actions[] = static const GimpStringActionEntry dialogs_toplevel_actions[] =
{ {
{ "dialogs-preferences", GTK_STOCK_PREFERENCES, { "dialogs-preferences", GTK_STOCK_PREFERENCES,
N_("_Preferences"), NULL, NULL, N_("_Preferences"), NULL, NULL,

View File

@ -25,8 +25,8 @@
#error "widgets/gimpactiongroup.h must be included prior to dialog-actions.h" #error "widgets/gimpactiongroup.h must be included prior to dialog-actions.h"
#endif #endif
extern GimpStringActionEntry dialogs_dockable_actions[]; extern const GimpStringActionEntry dialogs_dockable_actions[];
extern gint n_dialogs_dockable_actions; extern gint n_dialogs_dockable_actions;
void dialogs_actions_setup (GimpActionGroup *group); void dialogs_actions_setup (GimpActionGroup *group);

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry dock_actions[] = static const GimpActionEntry dock_actions[] =
{ {
{ "dock-move-to-screen-menu", GIMP_STOCK_MOVE_TO_SCREEN, { "dock-move-to-screen-menu", GIMP_STOCK_MOVE_TO_SCREEN,
N_("M_ove to Screen"), NULL, NULL, NULL, N_("M_ove to Screen"), NULL, NULL, NULL,
@ -54,7 +54,7 @@ static GimpActionEntry dock_actions[] =
NULL } NULL }
}; };
static GimpToggleActionEntry dock_toggle_actions[] = static const GimpToggleActionEntry dock_toggle_actions[] =
{ {
{ "dock-show-image-menu", NULL, { "dock-show-image-menu", NULL,
N_("_Show Image Selection"), NULL, NULL, N_("_Show Image Selection"), NULL, NULL,

View File

@ -43,7 +43,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry dockable_actions[] = static const GimpActionEntry dockable_actions[] =
{ {
{ "dockable-popup", NULL, { "dockable-popup", NULL,
N_("Dialogs Menu"), NULL, NULL, NULL, N_("Dialogs Menu"), NULL, NULL, NULL,
@ -76,7 +76,7 @@ static GimpActionEntry dockable_actions[] =
(style), \ (style), \
GIMP_HELP_DOCK_TAB_STYLE } GIMP_HELP_DOCK_TAB_STYLE }
static GimpRadioActionEntry dockable_view_size_actions[] = static const GimpRadioActionEntry dockable_view_size_actions[] =
{ {
VIEW_SIZE ("tiny", N_("_Tiny"), GIMP_VIEW_SIZE_TINY), VIEW_SIZE ("tiny", N_("_Tiny"), GIMP_VIEW_SIZE_TINY),
VIEW_SIZE ("extra-small", N_("E_xtra Small"), GIMP_VIEW_SIZE_EXTRA_SMALL), VIEW_SIZE ("extra-small", N_("E_xtra Small"), GIMP_VIEW_SIZE_EXTRA_SMALL),
@ -89,7 +89,7 @@ static GimpRadioActionEntry dockable_view_size_actions[] =
VIEW_SIZE ("gigantic", N_("_Gigantic"), GIMP_VIEW_SIZE_GIGANTIC) VIEW_SIZE ("gigantic", N_("_Gigantic"), GIMP_VIEW_SIZE_GIGANTIC)
}; };
static GimpRadioActionEntry dockable_tab_style_actions[] = static const GimpRadioActionEntry dockable_tab_style_actions[] =
{ {
TAB_STYLE ("icon", N_("_Icon"), GIMP_TAB_STYLE_ICON), TAB_STYLE ("icon", N_("_Icon"), GIMP_TAB_STYLE_ICON),
TAB_STYLE ("preview", N_("Current _Status"), GIMP_TAB_STYLE_PREVIEW), TAB_STYLE ("preview", N_("Current _Status"), GIMP_TAB_STYLE_PREVIEW),
@ -102,7 +102,7 @@ static GimpRadioActionEntry dockable_tab_style_actions[] =
#undef TAB_STYLE #undef TAB_STYLE
static GimpToggleActionEntry dockable_toggle_actions[] = static const GimpToggleActionEntry dockable_toggle_actions[] =
{ {
{ "dockable-show-button-bar", NULL, { "dockable-show-button-bar", NULL,
N_("Show _Button Bar"), NULL, NULL, N_("Show _Button Bar"), NULL, NULL,
@ -111,7 +111,7 @@ static GimpToggleActionEntry dockable_toggle_actions[] =
GIMP_HELP_DOCK_SHOW_BUTTON_BAR } GIMP_HELP_DOCK_SHOW_BUTTON_BAR }
}; };
static GimpRadioActionEntry dockable_view_type_actions[] = static const GimpRadioActionEntry dockable_view_type_actions[] =
{ {
{ "dockable-view-type-list", NULL, { "dockable-view-type-list", NULL,
N_("View as _List"), NULL, NULL, N_("View as _List"), NULL, NULL,

View File

@ -36,7 +36,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry documents_actions[] = static const GimpActionEntry documents_actions[] =
{ {
{ "documents-popup", GTK_STOCK_OPEN, { "documents-popup", GTK_STOCK_OPEN,
N_("Documents Menu"), NULL, NULL, NULL, N_("Documents Menu"), NULL, NULL, NULL,

View File

@ -39,7 +39,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry drawable_actions[] = static const GimpActionEntry drawable_actions[] =
{ {
{ "drawable-desaturate", GIMP_STOCK_CONVERT_GRAYSCALE, { "drawable-desaturate", GIMP_STOCK_CONVERT_GRAYSCALE,
N_("_Desaturate..."), NULL, N_("_Desaturate..."), NULL,
@ -72,7 +72,7 @@ static GimpActionEntry drawable_actions[] =
GIMP_HELP_LAYER_OFFSET } GIMP_HELP_LAYER_OFFSET }
}; };
static GimpToggleActionEntry drawable_toggle_actions[] = static const GimpToggleActionEntry drawable_toggle_actions[] =
{ {
{ "drawable-linked", GIMP_STOCK_LINKED, { "drawable-linked", GIMP_STOCK_LINKED,
N_("_Linked"), NULL, N_("_Linked"), NULL,
@ -89,7 +89,7 @@ static GimpToggleActionEntry drawable_toggle_actions[] =
GIMP_HELP_LAYER_VISIBLE } GIMP_HELP_LAYER_VISIBLE }
}; };
static GimpEnumActionEntry drawable_flip_actions[] = static const GimpEnumActionEntry drawable_flip_actions[] =
{ {
{ "drawable-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL, { "drawable-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
N_("Flip _Horizontally"), NULL, N_("Flip _Horizontally"), NULL,
@ -104,7 +104,7 @@ static GimpEnumActionEntry drawable_flip_actions[] =
GIMP_HELP_LAYER_FLIP_VERTICAL } GIMP_HELP_LAYER_FLIP_VERTICAL }
}; };
static GimpEnumActionEntry drawable_rotate_actions[] = static const GimpEnumActionEntry drawable_rotate_actions[] =
{ {
{ "drawable-rotate-90", GIMP_STOCK_ROTATE_90, { "drawable-rotate-90", GIMP_STOCK_ROTATE_90,
N_("Rotate 90° _clockwise"), NULL, N_("Rotate 90° _clockwise"), NULL,

View File

@ -56,7 +56,7 @@ static void edit_actions_pattern_changed (GimpContext *context,
GimpActionGroup *group); GimpActionGroup *group);
static GimpActionEntry edit_actions[] = static const GimpActionEntry edit_actions[] =
{ {
{ "edit-menu", NULL, N_("_Edit") }, { "edit-menu", NULL, N_("_Edit") },
{ "edit-paste-as-menu", NULL, N_("_Paste as") }, { "edit-paste-as-menu", NULL, N_("_Paste as") },
@ -153,7 +153,7 @@ static GimpActionEntry edit_actions[] =
GIMP_HELP_EDIT_CLEAR } GIMP_HELP_EDIT_CLEAR }
}; };
static GimpEnumActionEntry edit_fill_actions[] = static const GimpEnumActionEntry edit_fill_actions[] =
{ {
{ "edit-fill-fg", GIMP_STOCK_TOOL_BUCKET_FILL, { "edit-fill-fg", GIMP_STOCK_TOOL_BUCKET_FILL,
N_("Fill with _FG Color"), "<control>comma", N_("Fill with _FG Color"), "<control>comma",

View File

@ -34,7 +34,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry error_console_actions[] = static const GimpActionEntry error_console_actions[] =
{ {
{ "error-console-popup", GIMP_STOCK_WARNING, { "error-console-popup", GIMP_STOCK_WARNING,
N_("Error Console Menu"), NULL, NULL, NULL, N_("Error Console Menu"), NULL, NULL, NULL,
@ -47,7 +47,7 @@ static GimpActionEntry error_console_actions[] =
GIMP_HELP_ERRORS_CLEAR } GIMP_HELP_ERRORS_CLEAR }
}; };
static GimpEnumActionEntry error_console_save_actions[] = static const GimpEnumActionEntry error_console_save_actions[] =
{ {
{ "error-console-save-all", GTK_STOCK_SAVE_AS, { "error-console-save-all", GTK_STOCK_SAVE_AS,
N_("Save _All Errors to File..."), "", N_("Save _All Errors to File..."), "",

View File

@ -59,7 +59,7 @@ static void file_actions_close_all_update (GimpContainer *container,
GimpActionGroup *group); GimpActionGroup *group);
static GimpActionEntry file_actions[] = static const GimpActionEntry file_actions[] =
{ {
{ "file-menu", NULL, N_("_File") }, { "file-menu", NULL, N_("_File") },
{ "file-open-recent-menu", NULL, N_("Open _Recent") }, { "file-open-recent-menu", NULL, N_("Open _Recent") },

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry fonts_actions[] = static const GimpActionEntry fonts_actions[] =
{ {
{ "fonts-popup", GIMP_STOCK_FONT, { "fonts-popup", GIMP_STOCK_FONT,
N_("Fonts Menu"), NULL, NULL, NULL, N_("Fonts Menu"), NULL, NULL, NULL,

View File

@ -40,7 +40,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry gradient_editor_actions[] = static const GimpActionEntry gradient_editor_actions[] =
{ {
{ "gradient-editor-popup", GIMP_STOCK_GRADIENT, { "gradient-editor-popup", GIMP_STOCK_GRADIENT,
N_("Gradient Editor Menu"), NULL, NULL, NULL, N_("Gradient Editor Menu"), NULL, NULL, NULL,
@ -115,7 +115,7 @@ static GimpActionEntry gradient_editor_actions[] =
GIMP_HELP_GRADIENT_EDITOR_BLEND_OPACITY } GIMP_HELP_GRADIENT_EDITOR_BLEND_OPACITY }
}; };
static GimpToggleActionEntry gradient_editor_toggle_actions[] = static const GimpToggleActionEntry gradient_editor_toggle_actions[] =
{ {
{ "gradient-editor-edit-active", GIMP_STOCK_LINKED, { "gradient-editor-edit-active", GIMP_STOCK_LINKED,
N_("Edit Active Gradient"), NULL, NULL, N_("Edit Active Gradient"), NULL, NULL,
@ -146,7 +146,7 @@ static GimpToggleActionEntry gradient_editor_toggle_actions[] =
(magic), FALSE, \ (magic), FALSE, \
GIMP_HELP_GRADIENT_EDITOR_RIGHT_SAVE } GIMP_HELP_GRADIENT_EDITOR_RIGHT_SAVE }
static GimpEnumActionEntry gradient_editor_load_left_actions[] = static const GimpEnumActionEntry gradient_editor_load_left_actions[] =
{ {
{ "gradient-editor-load-left-left-neighbor", NULL, { "gradient-editor-load-left-left-neighbor", NULL,
N_("_Left Neighbor's Right Endpoint"), NULL, NULL, N_("_Left Neighbor's Right Endpoint"), NULL, NULL,
@ -180,7 +180,7 @@ static GimpEnumActionEntry gradient_editor_load_left_actions[] =
LOAD_LEFT_FROM ("10", GRADIENT_EDITOR_COLOR_FIRST_CUSTOM + 9) LOAD_LEFT_FROM ("10", GRADIENT_EDITOR_COLOR_FIRST_CUSTOM + 9)
}; };
static GimpEnumActionEntry gradient_editor_save_left_actions[] = static const GimpEnumActionEntry gradient_editor_save_left_actions[] =
{ {
SAVE_LEFT_TO ("01", 0), SAVE_LEFT_TO ("01", 0),
SAVE_LEFT_TO ("02", 1), SAVE_LEFT_TO ("02", 1),
@ -194,7 +194,7 @@ static GimpEnumActionEntry gradient_editor_save_left_actions[] =
SAVE_LEFT_TO ("10", 9) SAVE_LEFT_TO ("10", 9)
}; };
static GimpEnumActionEntry gradient_editor_load_right_actions[] = static const GimpEnumActionEntry gradient_editor_load_right_actions[] =
{ {
{ "gradient-editor-load-right-right-neighbor", NULL, { "gradient-editor-load-right-right-neighbor", NULL,
N_("_Right Neighbor's Left Endpoint"), NULL, NULL, N_("_Right Neighbor's Left Endpoint"), NULL, NULL,
@ -228,7 +228,7 @@ static GimpEnumActionEntry gradient_editor_load_right_actions[] =
LOAD_RIGHT_FROM ("10", GRADIENT_EDITOR_COLOR_FIRST_CUSTOM + 9) LOAD_RIGHT_FROM ("10", GRADIENT_EDITOR_COLOR_FIRST_CUSTOM + 9)
}; };
static GimpEnumActionEntry gradient_editor_save_right_actions[] = static const GimpEnumActionEntry gradient_editor_save_right_actions[] =
{ {
SAVE_RIGHT_TO ("01", 0), SAVE_RIGHT_TO ("01", 0),
SAVE_RIGHT_TO ("02", 1), SAVE_RIGHT_TO ("02", 1),
@ -248,7 +248,7 @@ static GimpEnumActionEntry gradient_editor_save_right_actions[] =
#undef SAVE_RIGHT_TO #undef SAVE_RIGHT_TO
static GimpRadioActionEntry gradient_editor_blending_actions[] = static const GimpRadioActionEntry gradient_editor_blending_actions[] =
{ {
{ "gradient-editor-blending-linear", NULL, { "gradient-editor-blending-linear", NULL,
N_("_Linear"), NULL, NULL, N_("_Linear"), NULL, NULL,
@ -281,7 +281,7 @@ static GimpRadioActionEntry gradient_editor_blending_actions[] =
GIMP_HELP_GRADIENT_EDITOR_BLENDING } GIMP_HELP_GRADIENT_EDITOR_BLENDING }
}; };
static GimpRadioActionEntry gradient_editor_coloring_actions[] = static const GimpRadioActionEntry gradient_editor_coloring_actions[] =
{ {
{ "gradient-editor-coloring-rgb", NULL, { "gradient-editor-coloring-rgb", NULL,
N_("_RGB"), NULL, NULL, N_("_RGB"), NULL, NULL,
@ -304,7 +304,7 @@ static GimpRadioActionEntry gradient_editor_coloring_actions[] =
GIMP_HELP_GRADIENT_EDITOR_COLORING } GIMP_HELP_GRADIENT_EDITOR_COLORING }
}; };
static GimpEnumActionEntry gradient_editor_zoom_actions[] = static const GimpEnumActionEntry gradient_editor_zoom_actions[] =
{ {
{ "gradient-editor-zoom-in", GTK_STOCK_ZOOM_IN, { "gradient-editor-zoom-in", GTK_STOCK_ZOOM_IN,
N_("Zoom In"), NULL, N_("Zoom In"), NULL,

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry gradients_actions[] = static const GimpActionEntry gradients_actions[] =
{ {
{ "gradients-popup", GIMP_STOCK_GRADIENT, { "gradients-popup", GIMP_STOCK_GRADIENT,
N_("Gradients Menu"), NULL, NULL, NULL, N_("Gradients Menu"), NULL, NULL, NULL,
@ -81,7 +81,7 @@ static GimpActionEntry gradients_actions[] =
GIMP_HELP_GRADIENT_REFRESH } GIMP_HELP_GRADIENT_REFRESH }
}; };
static GimpStringActionEntry gradients_edit_actions[] = static const GimpStringActionEntry gradients_edit_actions[] =
{ {
{ "gradients-edit", GTK_STOCK_EDIT, { "gradients-edit", GTK_STOCK_EDIT,
N_("_Edit Gradient..."), NULL, N_("_Edit Gradient..."), NULL,

View File

@ -33,7 +33,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry help_actions[] = static const GimpActionEntry help_actions[] =
{ {
{ "help-menu", NULL, N_("_Help") }, { "help-menu", NULL, N_("_Help") },

View File

@ -41,7 +41,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry image_actions[] = static const GimpActionEntry image_actions[] =
{ {
{ "toolbox-menubar", NULL, { "toolbox-menubar", NULL,
N_("Toolbox Menu"), NULL, NULL, NULL, N_("Toolbox Menu"), NULL, NULL, NULL,
@ -141,7 +141,7 @@ static GimpActionEntry image_actions[] =
GIMP_HELP_IMAGE_PROPERTIES } GIMP_HELP_IMAGE_PROPERTIES }
}; };
static GimpEnumActionEntry image_convert_actions[] = static const GimpEnumActionEntry image_convert_actions[] =
{ {
{ "image-convert-rgb", GIMP_STOCK_CONVERT_RGB, { "image-convert-rgb", GIMP_STOCK_CONVERT_RGB,
N_("_RGB"), NULL, N_("_RGB"), NULL,
@ -162,7 +162,7 @@ static GimpEnumActionEntry image_convert_actions[] =
GIMP_HELP_IMAGE_CONVERT_INDEXED } GIMP_HELP_IMAGE_CONVERT_INDEXED }
}; };
static GimpEnumActionEntry image_flip_actions[] = static const GimpEnumActionEntry image_flip_actions[] =
{ {
{ "image-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL, { "image-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
N_("Flip _Horizontally"), NULL, N_("Flip _Horizontally"), NULL,
@ -177,7 +177,7 @@ static GimpEnumActionEntry image_flip_actions[] =
GIMP_HELP_IMAGE_FLIP_VERTICAL } GIMP_HELP_IMAGE_FLIP_VERTICAL }
}; };
static GimpEnumActionEntry image_rotate_actions[] = static const GimpEnumActionEntry image_rotate_actions[] =
{ {
{ "image-rotate-90", GIMP_STOCK_ROTATE_90, { "image-rotate-90", GIMP_STOCK_ROTATE_90,
N_("Rotate 90° _clockwise"), NULL, N_("Rotate 90° _clockwise"), NULL,

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry images_actions[] = static const GimpActionEntry images_actions[] =
{ {
{ "images-popup", GIMP_STOCK_IMAGES, { "images-popup", GIMP_STOCK_IMAGES,
N_("Images Menu"), NULL, NULL, NULL, N_("Images Menu"), NULL, NULL, NULL,

View File

@ -42,7 +42,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry layers_actions[] = static const GimpActionEntry layers_actions[] =
{ {
{ "layers-popup", GIMP_STOCK_LAYERS, { "layers-popup", GIMP_STOCK_LAYERS,
N_("Layers Menu"), NULL, NULL, NULL, N_("Layers Menu"), NULL, NULL, NULL,
@ -190,7 +190,7 @@ static GimpActionEntry layers_actions[] =
GIMP_HELP_LAYER_ALPHA_REMOVE } GIMP_HELP_LAYER_ALPHA_REMOVE }
}; };
static GimpToggleActionEntry layers_toggle_actions[] = static const GimpToggleActionEntry layers_toggle_actions[] =
{ {
{ "layers-lock-alpha", GIMP_STOCK_TRANSPARENCY, { "layers-lock-alpha", GIMP_STOCK_TRANSPARENCY,
N_("Lock Alph_a Channel"), NULL, N_("Lock Alph_a Channel"), NULL,
@ -220,7 +220,7 @@ static GimpToggleActionEntry layers_toggle_actions[] =
GIMP_HELP_LAYER_MASK_DISABLE } GIMP_HELP_LAYER_MASK_DISABLE }
}; };
static GimpEnumActionEntry layers_mask_apply_actions[] = static const GimpEnumActionEntry layers_mask_apply_actions[] =
{ {
{ "layers-mask-apply", NULL, { "layers-mask-apply", NULL,
N_("Apply Layer _Mask"), NULL, N_("Apply Layer _Mask"), NULL,
@ -235,7 +235,7 @@ static GimpEnumActionEntry layers_mask_apply_actions[] =
GIMP_HELP_LAYER_MASK_DELETE } GIMP_HELP_LAYER_MASK_DELETE }
}; };
static GimpEnumActionEntry layers_mask_to_selection_actions[] = static const GimpEnumActionEntry layers_mask_to_selection_actions[] =
{ {
{ "layers-mask-selection-replace", GIMP_STOCK_SELECTION_REPLACE, { "layers-mask-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("_Mask to Selection"), NULL, N_("_Mask to Selection"), NULL,
@ -262,7 +262,7 @@ static GimpEnumActionEntry layers_mask_to_selection_actions[] =
GIMP_HELP_LAYER_MASK_SELECTION_INTERSECT } GIMP_HELP_LAYER_MASK_SELECTION_INTERSECT }
}; };
static GimpEnumActionEntry layers_alpha_to_selection_actions[] = static const GimpEnumActionEntry layers_alpha_to_selection_actions[] =
{ {
{ "layers-alpha-selection-replace", GIMP_STOCK_SELECTION_REPLACE, { "layers-alpha-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Al_pha to Selection"), NULL, N_("Al_pha to Selection"), NULL,
@ -289,7 +289,7 @@ static GimpEnumActionEntry layers_alpha_to_selection_actions[] =
GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT } GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT }
}; };
static GimpEnumActionEntry layers_select_actions[] = static const GimpEnumActionEntry layers_select_actions[] =
{ {
{ "layers-select-top", NULL, { "layers-select-top", NULL,
N_("Select _Top Layer"), "Home", NULL, N_("Select _Top Layer"), "Home", NULL,
@ -312,7 +312,7 @@ static GimpEnumActionEntry layers_select_actions[] =
GIMP_HELP_LAYER_NEXT } GIMP_HELP_LAYER_NEXT }
}; };
static GimpEnumActionEntry layers_opacity_actions[] = static const GimpEnumActionEntry layers_opacity_actions[] =
{ {
{ "layers-opacity-set", GIMP_STOCK_TRANSPARENCY, { "layers-opacity-set", GIMP_STOCK_TRANSPARENCY,
N_("Set Opacity"), NULL, NULL, N_("Set Opacity"), NULL, NULL,
@ -344,7 +344,7 @@ static GimpEnumActionEntry layers_opacity_actions[] =
GIMP_HELP_LAYER_OPACITY } GIMP_HELP_LAYER_OPACITY }
}; };
static GimpEnumActionEntry layers_mode_actions[] = static const GimpEnumActionEntry layers_mode_actions[] =
{ {
{ "layers-mode-first", GIMP_STOCK_TOOL_PENCIL, { "layers-mode-first", GIMP_STOCK_TOOL_PENCIL,
"First Layer Mode", NULL, NULL, "First Layer Mode", NULL, NULL,

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry palette_editor_actions[] = static const GimpActionEntry palette_editor_actions[] =
{ {
{ "palette-editor-popup", GIMP_STOCK_PALETTE, { "palette-editor-popup", GIMP_STOCK_PALETTE,
N_("Palette Editor Menu"), NULL, NULL, NULL, N_("Palette Editor Menu"), NULL, NULL, NULL,
@ -57,7 +57,7 @@ static GimpActionEntry palette_editor_actions[] =
GIMP_HELP_PALETTE_EDITOR_DELETE } GIMP_HELP_PALETTE_EDITOR_DELETE }
}; };
static GimpToggleActionEntry palette_editor_toggle_actions[] = static const GimpToggleActionEntry palette_editor_toggle_actions[] =
{ {
{ "palette-editor-edit-active", GIMP_STOCK_LINKED, { "palette-editor-edit-active", GIMP_STOCK_LINKED,
N_("Edit Active Palette"), NULL, NULL, N_("Edit Active Palette"), NULL, NULL,
@ -66,7 +66,7 @@ static GimpToggleActionEntry palette_editor_toggle_actions[] =
GIMP_HELP_PALETTE_EDITOR_EDIT_ACTIVE } GIMP_HELP_PALETTE_EDITOR_EDIT_ACTIVE }
}; };
static GimpEnumActionEntry palette_editor_new_actions[] = static const GimpEnumActionEntry palette_editor_new_actions[] =
{ {
{ "palette-editor-new-color-fg", GTK_STOCK_NEW, { "palette-editor-new-color-fg", GTK_STOCK_NEW,
N_("New Color from _FG"), "", N_("New Color from _FG"), "",
@ -81,7 +81,7 @@ static GimpEnumActionEntry palette_editor_new_actions[] =
GIMP_HELP_PALETTE_EDITOR_NEW } GIMP_HELP_PALETTE_EDITOR_NEW }
}; };
static GimpEnumActionEntry palette_editor_zoom_actions[] = static const GimpEnumActionEntry palette_editor_zoom_actions[] =
{ {
{ "palette-editor-zoom-in", GTK_STOCK_ZOOM_IN, { "palette-editor-zoom-in", GTK_STOCK_ZOOM_IN,
N_("Zoom _In"), "", N_("Zoom _In"), "",

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry palettes_actions[] = static const GimpActionEntry palettes_actions[] =
{ {
{ "palettes-popup", GIMP_STOCK_PALETTE, { "palettes-popup", GIMP_STOCK_PALETTE,
N_("Palettes Menu"), NULL, NULL, NULL, N_("Palettes Menu"), NULL, NULL, NULL,
@ -87,7 +87,7 @@ static GimpActionEntry palettes_actions[] =
GIMP_HELP_PALETTE_REFRESH } GIMP_HELP_PALETTE_REFRESH }
}; };
static GimpStringActionEntry palettes_edit_actions[] = static const GimpStringActionEntry palettes_edit_actions[] =
{ {
{ "palettes-edit", GTK_STOCK_EDIT, { "palettes-edit", GTK_STOCK_EDIT,
N_("_Edit Palette..."), NULL, N_("_Edit Palette..."), NULL,

View File

@ -37,7 +37,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry patterns_actions[] = static const GimpActionEntry patterns_actions[] =
{ {
{ "patterns-popup", GIMP_STOCK_PATTERN, { "patterns-popup", GIMP_STOCK_PATTERN,
N_("Patterns Menu"), NULL, NULL, NULL, N_("Patterns Menu"), NULL, NULL, NULL,
@ -80,7 +80,7 @@ static GimpActionEntry patterns_actions[] =
GIMP_HELP_PATTERN_REFRESH } GIMP_HELP_PATTERN_REFRESH }
}; };
static GimpStringActionEntry patterns_edit_actions[] = static const GimpStringActionEntry patterns_edit_actions[] =
{ {
{ "patterns-edit", GTK_STOCK_EDIT, { "patterns-edit", GTK_STOCK_EDIT,
N_("_Edit Pattern..."), NULL, N_("_Edit Pattern..."), NULL,

View File

@ -62,7 +62,7 @@ static void plug_in_actions_build_path (GimpActionGroup *group,
/* private variables */ /* private variables */
static GimpActionEntry plug_in_actions[] = static const GimpActionEntry plug_in_actions[] =
{ {
{ "plug-in-menu", NULL, N_("Filte_rs") }, { "plug-in-menu", NULL, N_("Filte_rs") },
{ "plug-in-recent-menu", NULL, N_("Recently Used") }, { "plug-in-recent-menu", NULL, N_("Recently Used") },
@ -90,7 +90,7 @@ static GimpActionEntry plug_in_actions[] =
GIMP_HELP_FILTER_RESET_ALL } GIMP_HELP_FILTER_RESET_ALL }
}; };
static GimpEnumActionEntry plug_in_repeat_actions[] = static const GimpEnumActionEntry plug_in_repeat_actions[] =
{ {
{ "plug-in-repeat", GTK_STOCK_EXECUTE, { "plug-in-repeat", GTK_STOCK_EXECUTE,
N_("Re_peat Last"), "<control>F", N_("Re_peat Last"), "<control>F",

View File

@ -36,7 +36,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry quick_mask_actions[] = static const GimpActionEntry quick_mask_actions[] =
{ {
{ "quick-mask-popup", NULL, { "quick-mask-popup", NULL,
N_("Quick Mask Menu"), NULL, NULL, NULL, N_("Quick Mask Menu"), NULL, NULL, NULL,
@ -48,7 +48,7 @@ static GimpActionEntry quick_mask_actions[] =
GIMP_HELP_QUICK_MASK_EDIT } GIMP_HELP_QUICK_MASK_EDIT }
}; };
static GimpToggleActionEntry quick_mask_toggle_actions[] = static const GimpToggleActionEntry quick_mask_toggle_actions[] =
{ {
{ "quick-mask-toggle", GIMP_STOCK_QUICK_MASK_ON, { "quick-mask-toggle", GIMP_STOCK_QUICK_MASK_ON,
N_("Toggle _Quick Mask"), "<shift>Q", N_("Toggle Quick Mask"), N_("Toggle _Quick Mask"), "<shift>Q", N_("Toggle Quick Mask"),
@ -57,7 +57,7 @@ static GimpToggleActionEntry quick_mask_toggle_actions[] =
GIMP_HELP_QUICK_MASK_TOGGLE } GIMP_HELP_QUICK_MASK_TOGGLE }
}; };
static GimpRadioActionEntry quick_mask_invert_actions[] = static const GimpRadioActionEntry quick_mask_invert_actions[] =
{ {
{ "quick-mask-invert-on", NULL, { "quick-mask-invert-on", NULL,
N_("Mask _Selected Areas"), NULL, NULL, N_("Mask _Selected Areas"), NULL, NULL,

View File

@ -34,14 +34,14 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry sample_point_editor_actions[] = static const GimpActionEntry sample_point_editor_actions[] =
{ {
{ "sample-point-editor-popup", GIMP_STOCK_SAMPLE_POINT, { "sample-point-editor-popup", GIMP_STOCK_SAMPLE_POINT,
N_("Sample Point Menu"), NULL, NULL, NULL, N_("Sample Point Menu"), NULL, NULL, NULL,
GIMP_HELP_SAMPLE_POINT_DIALOG } GIMP_HELP_SAMPLE_POINT_DIALOG }
}; };
static GimpToggleActionEntry sample_point_editor_toggle_actions[] = static const GimpToggleActionEntry sample_point_editor_toggle_actions[] =
{ {
{ "sample-point-editor-sample-merged", NULL, { "sample-point-editor-sample-merged", NULL,
N_("_Sample Merged"), "", N_("_Sample Merged"), "",

View File

@ -34,14 +34,14 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry sample_point_editor_actions[] = static const GimpActionEntry sample_point_editor_actions[] =
{ {
{ "sample-point-editor-popup", GIMP_STOCK_SAMPLE_POINT, { "sample-point-editor-popup", GIMP_STOCK_SAMPLE_POINT,
N_("Sample Point Menu"), NULL, NULL, NULL, N_("Sample Point Menu"), NULL, NULL, NULL,
GIMP_HELP_SAMPLE_POINT_DIALOG } GIMP_HELP_SAMPLE_POINT_DIALOG }
}; };
static GimpToggleActionEntry sample_point_editor_toggle_actions[] = static const GimpToggleActionEntry sample_point_editor_toggle_actions[] =
{ {
{ "sample-point-editor-sample-merged", NULL, { "sample-point-editor-sample-merged", NULL,
N_("_Sample Merged"), "", N_("_Sample Merged"), "",

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry select_actions[] = static const GimpActionEntry select_actions[] =
{ {
{ "selection-editor-popup", GIMP_STOCK_TOOL_RECT_SELECT, { "selection-editor-popup", GIMP_STOCK_TOOL_RECT_SELECT,
N_("Selection Editor Menu"), NULL, NULL, NULL, N_("Selection Editor Menu"), NULL, NULL, NULL,

View File

@ -36,7 +36,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry templates_actions[] = static const GimpActionEntry templates_actions[] =
{ {
{ "templates-popup", GIMP_STOCK_TEMPLATE, { "templates-popup", GIMP_STOCK_TEMPLATE,
N_("Templates Menu"), NULL, NULL, NULL, N_("Templates Menu"), NULL, NULL, NULL,

View File

@ -34,7 +34,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry text_editor_actions[] = static const GimpActionEntry text_editor_actions[] =
{ {
{ "text-editor-toolbar", GTK_STOCK_EDIT, { "text-editor-toolbar", GTK_STOCK_EDIT,
"Text Editor Toolbar", NULL, NULL, NULL, "Text Editor Toolbar", NULL, NULL, NULL,
@ -53,7 +53,7 @@ static GimpActionEntry text_editor_actions[] =
NULL } NULL }
}; };
static GimpRadioActionEntry text_editor_direction_actions[] = static const GimpRadioActionEntry text_editor_direction_actions[] =
{ {
{ "text-editor-direction-ltr", GIMP_STOCK_TEXT_DIR_LTR, { "text-editor-direction-ltr", GIMP_STOCK_TEXT_DIR_LTR,
N_("LTR"), "", N_("LTR"), "",

View File

@ -50,7 +50,7 @@ static void tool_options_actions_update_presets (GimpActionGroup *group,
/* global variables */ /* global variables */
static GimpActionEntry tool_options_actions[] = static const GimpActionEntry tool_options_actions[] =
{ {
{ "tool-options-popup", GIMP_STOCK_TOOL_OPTIONS, { "tool-options-popup", GIMP_STOCK_TOOL_OPTIONS,
N_("Tool Options Menu"), NULL, NULL, NULL, N_("Tool Options Menu"), NULL, NULL, NULL,

View File

@ -41,7 +41,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry tools_actions[] = static const GimpActionEntry tools_actions[] =
{ {
{ "tools-popup", GIMP_STOCK_TOOLS, { "tools-popup", GIMP_STOCK_TOOLS,
N_("Tools Menu"), NULL, NULL, NULL, N_("Tools Menu"), NULL, NULL, NULL,
@ -84,7 +84,7 @@ static GimpActionEntry tools_actions[] =
NULL } NULL }
}; };
static GimpToggleActionEntry tools_toggle_actions[] = static const GimpToggleActionEntry tools_toggle_actions[] =
{ {
{ "tools-visibility", GIMP_STOCK_VISIBLE, { "tools-visibility", GIMP_STOCK_VISIBLE,
N_("_Show in Toolbox"), NULL, NULL, N_("_Show in Toolbox"), NULL, NULL,
@ -93,7 +93,7 @@ static GimpToggleActionEntry tools_toggle_actions[] =
NULL /* FIXME */ } NULL /* FIXME */ }
}; };
static GimpStringActionEntry tools_alternative_actions[] = static const GimpStringActionEntry tools_alternative_actions[] =
{ {
{ "tools-by-color-select-short", GIMP_STOCK_TOOL_BY_COLOR_SELECT, { "tools-by-color-select-short", GIMP_STOCK_TOOL_BY_COLOR_SELECT,
N_("_By Color"), NULL, NULL, N_("_By Color"), NULL, NULL,
@ -106,7 +106,7 @@ static GimpStringActionEntry tools_alternative_actions[] =
GIMP_HELP_TOOL_ROTATE } GIMP_HELP_TOOL_ROTATE }
}; };
static GimpEnumActionEntry tools_color_average_radius_actions[] = static const GimpEnumActionEntry tools_color_average_radius_actions[] =
{ {
{ "tools-color-average-radius-set", GIMP_STOCK_TOOL_COLOR_PICKER, { "tools-color-average-radius-set", GIMP_STOCK_TOOL_COLOR_PICKER,
"Set Color Picker Radius", NULL, NULL, "Set Color Picker Radius", NULL, NULL,
@ -140,7 +140,7 @@ static GimpEnumActionEntry tools_color_average_radius_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_ink_blob_size_actions[] = static const GimpEnumActionEntry tools_ink_blob_size_actions[] =
{ {
{ "tools-ink-blob-size-set", GIMP_STOCK_TOOL_INK, { "tools-ink-blob-size-set", GIMP_STOCK_TOOL_INK,
"Set Ink Blob Size", NULL, NULL, "Set Ink Blob Size", NULL, NULL,
@ -172,7 +172,7 @@ static GimpEnumActionEntry tools_ink_blob_size_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_ink_blob_aspect_actions[] = static const GimpEnumActionEntry tools_ink_blob_aspect_actions[] =
{ {
{ "tools-ink-blob-aspect-set", GIMP_STOCK_TOOL_INK, { "tools-ink-blob-aspect-set", GIMP_STOCK_TOOL_INK,
"Set Ink Blob Aspect", NULL, NULL, "Set Ink Blob Aspect", NULL, NULL,
@ -204,7 +204,7 @@ static GimpEnumActionEntry tools_ink_blob_aspect_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_ink_blob_angle_actions[] = static const GimpEnumActionEntry tools_ink_blob_angle_actions[] =
{ {
{ "tools-ink-blob-angle-set", GIMP_STOCK_TOOL_INK, { "tools-ink-blob-angle-set", GIMP_STOCK_TOOL_INK,
"Set Ink Blob Angle", NULL, NULL, "Set Ink Blob Angle", NULL, NULL,
@ -236,7 +236,7 @@ static GimpEnumActionEntry tools_ink_blob_angle_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_value_1_actions[] = static const GimpEnumActionEntry tools_value_1_actions[] =
{ {
{ "tools-value-1-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-value-1-set", GIMP_STOCK_TOOL_OPTIONS,
"Set Value 1", NULL, NULL, "Set Value 1", NULL, NULL,
@ -268,7 +268,7 @@ static GimpEnumActionEntry tools_value_1_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_value_2_actions[] = static const GimpEnumActionEntry tools_value_2_actions[] =
{ {
{ "tools-value-2-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-value-2-set", GIMP_STOCK_TOOL_OPTIONS,
"Set Value 2", NULL, NULL, "Set Value 2", NULL, NULL,
@ -300,7 +300,7 @@ static GimpEnumActionEntry tools_value_2_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_value_3_actions[] = static const GimpEnumActionEntry tools_value_3_actions[] =
{ {
{ "tools-value-3-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-value-3-set", GIMP_STOCK_TOOL_OPTIONS,
"Set Value 3", NULL, NULL, "Set Value 3", NULL, NULL,
@ -332,7 +332,7 @@ static GimpEnumActionEntry tools_value_3_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_value_4_actions[] = static const GimpEnumActionEntry tools_value_4_actions[] =
{ {
{ "tools-value-4-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-value-4-set", GIMP_STOCK_TOOL_OPTIONS,
"Set Value 4", NULL, NULL, "Set Value 4", NULL, NULL,
@ -364,7 +364,7 @@ static GimpEnumActionEntry tools_value_4_actions[] =
NULL }, NULL },
}; };
static GimpEnumActionEntry tools_object_1_actions[] = static const GimpEnumActionEntry tools_object_1_actions[] =
{ {
{ "tools-object-1-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-object-1-set", GIMP_STOCK_TOOL_OPTIONS,
"Select Object 1 by Index", NULL, NULL, "Select Object 1 by Index", NULL, NULL,
@ -388,7 +388,7 @@ static GimpEnumActionEntry tools_object_1_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry tools_object_2_actions[] = static const GimpEnumActionEntry tools_object_2_actions[] =
{ {
{ "tools-object-2-set", GIMP_STOCK_TOOL_OPTIONS, { "tools-object-2-set", GIMP_STOCK_TOOL_OPTIONS,
"Select Object 2 by Index", NULL, NULL, "Select Object 2 by Index", NULL, NULL,

View File

@ -38,7 +38,7 @@
#include "gimp-intl.h" #include "gimp-intl.h"
static GimpActionEntry vectors_actions[] = static const GimpActionEntry vectors_actions[] =
{ {
{ "vectors-popup", GIMP_STOCK_PATHS, { "vectors-popup", GIMP_STOCK_PATHS,
N_("Paths Menu"), NULL, NULL, NULL, N_("Paths Menu"), NULL, NULL, NULL,
@ -141,7 +141,7 @@ static GimpActionEntry vectors_actions[] =
GIMP_HELP_PATH_IMPORT } GIMP_HELP_PATH_IMPORT }
}; };
static GimpToggleActionEntry vectors_toggle_actions[] = static const GimpToggleActionEntry vectors_toggle_actions[] =
{ {
{ "vectors-visible", GIMP_STOCK_VISIBLE, { "vectors-visible", GIMP_STOCK_VISIBLE,
N_("_Visible"), NULL, NULL, N_("_Visible"), NULL, NULL,
@ -156,7 +156,7 @@ static GimpToggleActionEntry vectors_toggle_actions[] =
GIMP_HELP_PATH_LINKED } GIMP_HELP_PATH_LINKED }
}; };
static GimpEnumActionEntry vectors_to_selection_actions[] = static const GimpEnumActionEntry vectors_to_selection_actions[] =
{ {
{ "vectors-selection-replace", GIMP_STOCK_SELECTION_REPLACE, { "vectors-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Path to Sele_ction"), NULL, N_("Path to Sele_ction"), NULL,
@ -188,7 +188,7 @@ static GimpEnumActionEntry vectors_to_selection_actions[] =
GIMP_HELP_PATH_SELECTION_INTERSECT } GIMP_HELP_PATH_SELECTION_INTERSECT }
}; };
static GimpEnumActionEntry vectors_selection_to_vectors_actions[] = static const GimpEnumActionEntry vectors_selection_to_vectors_actions[] =
{ {
{ "vectors-selection-to-vectors", GIMP_STOCK_SELECTION_TO_PATH, { "vectors-selection-to-vectors", GIMP_STOCK_SELECTION_TO_PATH,
N_("Selecti_on to Path"), NULL, N_("Selecti_on to Path"), NULL,

View File

@ -60,7 +60,7 @@ static void view_actions_check_type_notify (GimpDisplayConfig *config,
GimpActionGroup *group); GimpActionGroup *group);
static GimpActionEntry view_actions[] = static const GimpActionEntry view_actions[] =
{ {
{ "view-menu", NULL, N_("_View") }, { "view-menu", NULL, N_("_View") },
{ "view-zoom-menu", NULL, N_("_Zoom") }, { "view-zoom-menu", NULL, N_("_Zoom") },
@ -118,7 +118,7 @@ static GimpActionEntry view_actions[] =
NULL } NULL }
}; };
static GimpToggleActionEntry view_toggle_actions[] = static const GimpToggleActionEntry view_toggle_actions[] =
{ {
{ "view-dot-for-dot", NULL, { "view-dot-for-dot", NULL,
N_("_Dot for Dot"), NULL, N_("_Dot for Dot"), NULL,
@ -215,7 +215,7 @@ static GimpToggleActionEntry view_toggle_actions[] =
GIMP_HELP_VIEW_FULLSCREEN } GIMP_HELP_VIEW_FULLSCREEN }
}; };
static GimpEnumActionEntry view_zoom_actions[] = static const GimpEnumActionEntry view_zoom_actions[] =
{ {
{ "view-zoom", NULL, { "view-zoom", NULL,
"Set zoom factor", NULL, NULL, "Set zoom factor", NULL, NULL,
@ -267,7 +267,7 @@ static GimpEnumActionEntry view_zoom_actions[] =
GIMP_HELP_VIEW_ZOOM_IN } GIMP_HELP_VIEW_ZOOM_IN }
}; };
static GimpRadioActionEntry view_zoom_explicit_actions[] = static const GimpRadioActionEntry view_zoom_explicit_actions[] =
{ {
{ "view-zoom-16-1", NULL, { "view-zoom-16-1", NULL,
N_("1_6:1 (1600%)"), NULL, NULL, N_("1_6:1 (1600%)"), NULL, NULL,
@ -321,7 +321,7 @@ static GimpRadioActionEntry view_zoom_explicit_actions[] =
GIMP_HELP_VIEW_ZOOM_OTHER } GIMP_HELP_VIEW_ZOOM_OTHER }
}; };
static GimpEnumActionEntry view_padding_color_actions[] = static const GimpEnumActionEntry view_padding_color_actions[] =
{ {
{ "view-padding-color-theme", NULL, { "view-padding-color-theme", NULL,
N_("From _Theme"), NULL, NULL, N_("From _Theme"), NULL, NULL,
@ -349,7 +349,7 @@ static GimpEnumActionEntry view_padding_color_actions[] =
GIMP_HELP_VIEW_PADDING_COLOR } GIMP_HELP_VIEW_PADDING_COLOR }
}; };
static GimpEnumActionEntry view_scroll_horizontal_actions[] = static const GimpEnumActionEntry view_scroll_horizontal_actions[] =
{ {
{ "view-scroll-horizontal", NULL, { "view-scroll-horizontal", NULL,
"Set horizontal scroll offset", NULL, NULL, "Set horizontal scroll offset", NULL, NULL,
@ -387,7 +387,7 @@ static GimpEnumActionEntry view_scroll_horizontal_actions[] =
NULL } NULL }
}; };
static GimpEnumActionEntry view_scroll_vertical_actions[] = static const GimpEnumActionEntry view_scroll_vertical_actions[] =
{ {
{ "view-scroll-vertical", NULL, { "view-scroll-vertical", NULL,
"Set vertical scroll offset", NULL, NULL, "Set vertical scroll offset", NULL, NULL,

View File

@ -333,9 +333,9 @@ gimp_action_group_update (GimpActionGroup *group,
} }
void void
gimp_action_group_add_actions (GimpActionGroup *group, gimp_action_group_add_actions (GimpActionGroup *group,
GimpActionEntry *entries, const GimpActionEntry *entries,
guint n_entries) guint n_entries)
{ {
gint i; gint i;
@ -378,9 +378,9 @@ gimp_action_group_add_actions (GimpActionGroup *group,
} }
void void
gimp_action_group_add_toggle_actions (GimpActionGroup *group, gimp_action_group_add_toggle_actions (GimpActionGroup *group,
GimpToggleActionEntry *entries, const GimpToggleActionEntry *entries,
guint n_entries) guint n_entries)
{ {
gint i; gint i;
@ -425,12 +425,12 @@ gimp_action_group_add_toggle_actions (GimpActionGroup *group,
} }
GSList * GSList *
gimp_action_group_add_radio_actions (GimpActionGroup *group, gimp_action_group_add_radio_actions (GimpActionGroup *group,
GimpRadioActionEntry *entries, const GimpRadioActionEntry *entries,
guint n_entries, guint n_entries,
GSList *radio_group, GSList *radio_group,
gint value, gint value,
GCallback callback) GCallback callback)
{ {
GtkRadioAction *first_action = NULL; GtkRadioAction *first_action = NULL;
gint i; gint i;
@ -486,10 +486,10 @@ gimp_action_group_add_radio_actions (GimpActionGroup *group,
} }
void void
gimp_action_group_add_enum_actions (GimpActionGroup *group, gimp_action_group_add_enum_actions (GimpActionGroup *group,
GimpEnumActionEntry *entries, const GimpEnumActionEntry *entries,
guint n_entries, guint n_entries,
GCallback callback) GCallback callback)
{ {
gint i; gint i;
@ -534,10 +534,10 @@ gimp_action_group_add_enum_actions (GimpActionGroup *group,
} }
void void
gimp_action_group_add_string_actions (GimpActionGroup *group, gimp_action_group_add_string_actions (GimpActionGroup *group,
GimpStringActionEntry *entries, const GimpStringActionEntry *entries,
guint n_entries, guint n_entries,
GCallback callback) GCallback callback)
{ {
gint i; gint i;
@ -581,10 +581,10 @@ gimp_action_group_add_string_actions (GimpActionGroup *group,
} }
void void
gimp_action_group_add_plug_in_actions (GimpActionGroup *group, gimp_action_group_add_plug_in_actions (GimpActionGroup *group,
GimpPlugInActionEntry *entries, const GimpPlugInActionEntry *entries,
guint n_entries, guint n_entries,
GCallback callback) GCallback callback)
{ {
gint i; gint i;

View File

@ -131,46 +131,45 @@ struct _GimpPlugInActionEntry
}; };
GType gimp_action_group_get_type (void) G_GNUC_CONST; GType gimp_action_group_get_type (void) G_GNUC_CONST;
GimpActionGroup *gimp_action_group_new (Gimp *gimp, GimpActionGroup *gimp_action_group_new (Gimp *gimp,
const gchar *name, const gchar *name,
const gchar *label, const gchar *label,
const gchar *stock_id, const gchar *stock_id,
gboolean mnemonics, gboolean mnemonics,
gpointer user_data, gpointer user_data,
GimpActionGroupUpdateFunc update_func); GimpActionGroupUpdateFunc update_func);
GList *gimp_action_groups_from_name (const gchar *name); GList *gimp_action_groups_from_name (const gchar *name);
void gimp_action_group_update (GimpActionGroup *group, void gimp_action_group_update (GimpActionGroup *group,
gpointer update_data); gpointer update_data);
void gimp_action_group_add_actions (GimpActionGroup *group, void gimp_action_group_add_actions (GimpActionGroup *group,
GimpActionEntry *entries, const GimpActionEntry *entries,
guint n_entries); guint n_entries);
void gimp_action_group_add_toggle_actions (GimpActionGroup *group, void gimp_action_group_add_toggle_actions (GimpActionGroup *group,
GimpToggleActionEntry *entries, const GimpToggleActionEntry *entries,
guint n_entries); guint n_entries);
GSList *gimp_action_group_add_radio_actions (GimpActionGroup *group, GSList *gimp_action_group_add_radio_actions (GimpActionGroup *group,
GimpRadioActionEntry *entries, const GimpRadioActionEntry *entries,
guint n_entries, guint n_entries,
GSList *radio_group, GSList *radio_group,
gint value, gint value,
GCallback callback); GCallback callback);
void gimp_action_group_add_enum_actions (GimpActionGroup *group,
void gimp_action_group_add_enum_actions (GimpActionGroup *group, const GimpEnumActionEntry *entries,
GimpEnumActionEntry *entries, guint n_entries,
guint n_entries, GCallback callback);
GCallback callback); void gimp_action_group_add_string_actions (GimpActionGroup *group,
void gimp_action_group_add_string_actions (GimpActionGroup *group, const GimpStringActionEntry *entries,
GimpStringActionEntry *entries, guint n_entries,
guint n_entries, GCallback callback);
GCallback callback); void gimp_action_group_add_plug_in_actions (GimpActionGroup *group,
void gimp_action_group_add_plug_in_actions(GimpActionGroup *group, const GimpPlugInActionEntry *entries,
GimpPlugInActionEntry *entries, guint n_entries,
guint n_entries, GCallback callback);
GCallback callback);
void gimp_action_group_set_action_visible (GimpActionGroup *group, void gimp_action_group_set_action_visible (GimpActionGroup *group,
const gchar *action_name, const gchar *action_name,