Commit 567bb7b2 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

added boolean property "value-variable" which specifies if the

2004-11-18  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpenumaction.[ch]: added boolean property
	"value-variable" which specifies if the GimpEnumAction::selected()
	signal may be emitted with arbirtary values (value-variable = TRUE)
	or *only* with enum_action->value (value-variable = FALSE).

	* app/widgets/gimpactiongroup.[ch]: added "gboolean
	value_variable" to GimpEnumActionEntry and set it in
	gimp_action_group_add_enum_actions().

	* app/actions/channels-actions.c
	* app/actions/colormap-editor-actions.c
	* app/actions/context-actions.c
	* app/actions/drawable-actions.c
	* app/actions/edit-actions.c
	* app/actions/error-console-actions.c
	* app/actions/gradient-editor-actions.c
	* app/actions/image-actions.c
	* app/actions/layers-actions.c
	* app/actions/palette-editor-actions.c
	* app/actions/plug-in-actions.c
	* app/actions/vectors-actions.c
	* app/actions/view-actions.c: set "variable" to FALSE for all enum
	actions except those which are used with the GIMP_ACTION_SELECT_SET
	voodoo.

	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
	fall back to gtk_action_activate() if the action specified in a
	GIMP_CONTROLLER_EVENT_VALUE mapping is not variable. Enables
	triggering of enum actions from GIMP_CONTROLLER_EVENT_VALUE events
	(like midi note-on and note-off).
parent bf08b8fd
2004-11-18 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpenumaction.[ch]: added boolean property
"value-variable" which specifies if the GimpEnumAction::selected()
signal may be emitted with arbirtary values (value-variable = TRUE)
or *only* with enum_action->value (value-variable = FALSE).
* app/widgets/gimpactiongroup.[ch]: added "gboolean
value_variable" to GimpEnumActionEntry and set it in
gimp_action_group_add_enum_actions().
* app/actions/channels-actions.c
* app/actions/colormap-editor-actions.c
* app/actions/context-actions.c
* app/actions/drawable-actions.c
* app/actions/edit-actions.c
* app/actions/error-console-actions.c
* app/actions/gradient-editor-actions.c
* app/actions/image-actions.c
* app/actions/layers-actions.c
* app/actions/palette-editor-actions.c
* app/actions/plug-in-actions.c
* app/actions/vectors-actions.c
* app/actions/view-actions.c: set "variable" to FALSE for all enum
actions except those which are used with the GIMP_ACTION_SELECT_SET
voodoo.
* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
fall back to gtk_action_activate() if the action specified in a
GIMP_CONTROLLER_EVENT_VALUE mapping is not variable. Enables
triggering of enum actions from GIMP_CONTROLLER_EVENT_VALUE events
(like midi note-on and note-off).
2004-11-18 Michael Natterer <mitch@gimp.org>
* acinclude.m4: pasted the complete alsa.m4 so compiling from
......
......@@ -104,25 +104,25 @@ static GimpEnumActionEntry channels_to_selection_actions[] =
{ "channels-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Channel to Sele_ction"), NULL,
N_("Channel to selection"),
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_REPLACE, FALSE,
GIMP_HELP_CHANNEL_SELECTION_REPLACE },
{ "channels-selection-add", GIMP_STOCK_SELECTION_ADD,
N_("_Add to Selection"), NULL,
N_("Add"),
GIMP_CHANNEL_OP_ADD,
GIMP_CHANNEL_OP_ADD, FALSE,
GIMP_HELP_CHANNEL_SELECTION_ADD },
{ "channels-selection-subtract", GIMP_STOCK_SELECTION_SUBTRACT,
N_("_Subtract from Selection"), NULL,
N_("Subtract"),
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_CHANNEL_OP_SUBTRACT, FALSE,
GIMP_HELP_CHANNEL_SELECTION_SUBTRACT },
{ "channels-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
N_("_Intersect with Selection"), NULL,
N_("Intersect"),
GIMP_CHANNEL_OP_INTERSECT,
GIMP_CHANNEL_OP_INTERSECT, FALSE,
GIMP_HELP_CHANNEL_SELECTION_INTERSECT }
};
......
......@@ -55,13 +55,13 @@ static GimpEnumActionEntry colormap_editor_add_color_actions[] =
{ "colormap-editor-add-color-from-fg", GTK_STOCK_ADD,
N_("_Add Color from FG"), "",
N_("Add color from FG"),
FALSE,
FALSE, FALSE,
GIMP_HELP_INDEXED_PALETTE_ADD },
{ "colormap-editor-add-color-from-bg", GTK_STOCK_ADD,
N_("_Add Color from BG"), "",
N_("Add color from BG"),
TRUE,
TRUE, FALSE,
GIMP_HELP_INDEXED_PALETTE_ADD }
};
......
......@@ -55,13 +55,13 @@ static GimpEnumActionEntry colormap_editor_add_color_actions[] =
{ "colormap-editor-add-color-from-fg", GTK_STOCK_ADD,
N_("_Add Color from FG"), "",
N_("Add color from FG"),
FALSE,
FALSE, FALSE,
GIMP_HELP_INDEXED_PALETTE_ADD },
{ "colormap-editor-add-color-from-bg", GTK_STOCK_ADD,
N_("_Add Color from BG"), "",
N_("Add color from BG"),
TRUE,
TRUE, FALSE,
GIMP_HELP_INDEXED_PALETTE_ADD }
};
......
This diff is collapsed.
......@@ -86,12 +86,12 @@ static GimpEnumActionEntry drawable_flip_actions[] =
{
{ "drawable-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
N_("Flip _Horizontally"), NULL, NULL,
GIMP_ORIENTATION_HORIZONTAL,
GIMP_ORIENTATION_HORIZONTAL, FALSE,
GIMP_HELP_LAYER_FLIP_HORIZONTAL },
{ "drawable-flip-vertical", GIMP_STOCK_FLIP_VERTICAL,
N_("Flip _Vertically"), NULL, NULL,
GIMP_ORIENTATION_VERTICAL,
GIMP_ORIENTATION_VERTICAL, FALSE,
GIMP_HELP_LAYER_FLIP_VERTICAL }
};
......@@ -99,17 +99,17 @@ static GimpEnumActionEntry drawable_rotate_actions[] =
{
{ "drawable-rotate-90", GIMP_STOCK_ROTATE_90,
N_("Rotate 90 degrees _CW"), NULL, NULL,
GIMP_ROTATE_90,
GIMP_ROTATE_90, FALSE,
GIMP_HELP_LAYER_ROTATE_90 },
{ "drawable-rotate-180", GIMP_STOCK_ROTATE_180,
N_("Rotate _180 degrees"), NULL, NULL,
GIMP_ROTATE_180,
GIMP_ROTATE_180, FALSE,
GIMP_HELP_LAYER_ROTATE_180 },
{ "drawable-rotate-270", GIMP_STOCK_ROTATE_270,
N_("Rotate 90 degrees CC_W"), NULL, NULL,
GIMP_ROTATE_270,
GIMP_ROTATE_270, FALSE,
GIMP_HELP_LAYER_ROTATE_270 }
};
......
......@@ -129,17 +129,17 @@ static GimpEnumActionEntry edit_fill_actions[] =
{
{ "edit-fill-fg", GIMP_STOCK_TOOL_BUCKET_FILL,
N_("Fill with _FG Color"), "<control>comma", NULL,
GIMP_FOREGROUND_FILL,
GIMP_FOREGROUND_FILL, FALSE,
GIMP_HELP_EDIT_FILL_FG },
{ "edit-fill-bg", GIMP_STOCK_TOOL_BUCKET_FILL,
N_("Fill with B_G Color"), "<control>period", NULL,
GIMP_BACKGROUND_FILL,
GIMP_BACKGROUND_FILL, FALSE,
GIMP_HELP_EDIT_FILL_BG },
{ "edit-fill-pattern", GIMP_STOCK_TOOL_BUCKET_FILL,
N_("Fill with P_attern"), "<control>semicolon", NULL,
GIMP_PATTERN_FILL,
GIMP_PATTERN_FILL, FALSE,
GIMP_HELP_EDIT_FILL_PATTERN }
};
......
......@@ -52,13 +52,13 @@ static GimpEnumActionEntry error_console_save_actions[] =
{ "error-console-save-all", GTK_STOCK_SAVE_AS,
N_("Save _All Errors to File..."), "",
N_("Save all errors"),
FALSE,
FALSE, FALSE,
GIMP_HELP_ERRORS_SAVE },
{ "error-console-save-selection", GTK_STOCK_SAVE_AS,
N_("Save _Selection to File..."), "",
N_("Save selection"),
TRUE,
TRUE, FALSE,
GIMP_HELP_ERRORS_SAVE }
};
......
......@@ -119,44 +119,44 @@ static GimpActionEntry gradient_editor_actions[] =
#define LOAD_LEFT_FROM(num,magic) \
{ "gradient-editor-load-left-" num, NULL, \
num, NULL, NULL, \
(magic), \
(magic), FALSE, \
GIMP_HELP_GRADIENT_EDITOR_LEFT_LOAD }
#define SAVE_LEFT_TO(num,magic) \
{ "gradient-editor-save-left-" num, NULL, \
num, NULL, NULL, \
(magic), \
(magic), FALSE, \
GIMP_HELP_GRADIENT_EDITOR_LEFT_SAVE }
#define LOAD_RIGHT_FROM(num,magic) \
{ "gradient-editor-load-right-" num, NULL, \
num, NULL, NULL, \
(magic), \
(magic), FALSE, \
GIMP_HELP_GRADIENT_EDITOR_RIGHT_LOAD }
#define SAVE_RIGHT_TO(num,magic) \
{ "gradient-editor-save-right-" num, NULL, \
num, NULL, NULL, \
(magic), \
(magic), FALSE, \
GIMP_HELP_GRADIENT_EDITOR_RIGHT_SAVE }
static GimpEnumActionEntry gradient_editor_load_left_actions[] =
{
{ "gradient-editor-load-left-left-neighbor", NULL,
N_("_Left Neighbor's Right Endpoint"), NULL, NULL,
0,
0, FALSE,
GIMP_HELP_GRADIENT_EDITOR_LEFT_LOAD },
{ "gradient-editor-load-left-right-endpoint", NULL,
N_("_Right Endpoint"), NULL, NULL,
1,
1, FALSE,
GIMP_HELP_GRADIENT_EDITOR_LEFT_LOAD },
{ "gradient-editor-load-left-fg", NULL,
N_("_FG Color"), NULL, NULL,
2,
2, FALSE,
GIMP_HELP_GRADIENT_EDITOR_LEFT_LOAD },
{ "gradient-editor-load-left-bg", NULL,
N_("_BG Color"), NULL, NULL,
3,
3, FALSE,
GIMP_HELP_GRADIENT_EDITOR_LEFT_LOAD },
LOAD_LEFT_FROM ("01", 4),
......@@ -189,22 +189,22 @@ static GimpEnumActionEntry gradient_editor_load_right_actions[] =
{
{ "gradient-editor-load-right-right-neighbor", NULL,
N_("_Right Neighbor's Left Endpoint"), NULL, NULL,
0,
0, FALSE,
GIMP_HELP_GRADIENT_EDITOR_RIGHT_LOAD },
{ "gradient-editor-load-right-left-endpoint", NULL,
N_("_Left Endpoint"), NULL, NULL,
1,
1, FALSE,
GIMP_HELP_GRADIENT_EDITOR_RIGHT_LOAD },
{ "gradient-editor-load-right-fg", NULL,
N_("_FG Color"), NULL, NULL,
2,
2, FALSE,
GIMP_HELP_GRADIENT_EDITOR_RIGHT_LOAD },
{ "gradient-editor-load-right-bg", NULL,
N_("_BG Color"), NULL, NULL,
3,
3, FALSE,
GIMP_HELP_GRADIENT_EDITOR_RIGHT_LOAD },
LOAD_RIGHT_FROM ("01", 4),
......@@ -300,19 +300,19 @@ static GimpEnumActionEntry gradient_editor_zoom_actions[] =
{ "gradient-editor-zoom-in", GTK_STOCK_ZOOM_IN,
N_("Zoom In"), NULL,
N_("Zoom in"),
GIMP_ZOOM_IN,
GIMP_ZOOM_IN, FALSE,
GIMP_HELP_GRADIENT_EDITOR_ZOOM_IN },
{ "gradient-editor-zoom-out", GTK_STOCK_ZOOM_OUT,
N_("Zoom Out"), NULL,
N_("Zoom out"),
GIMP_ZOOM_OUT,
GIMP_ZOOM_OUT, FALSE,
GIMP_HELP_GRADIENT_EDITOR_ZOOM_OUT },
{ "gradient-editor-zoom-all", GTK_STOCK_ZOOM_FIT,
N_("Zoom All"), NULL,
N_("Zoom all"),
GIMP_ZOOM_TO, /* abused */
GIMP_ZOOM_TO /* abused */, FALSE,
GIMP_HELP_GRADIENT_EDITOR_ZOOM_ALL }
};
......
......@@ -121,17 +121,17 @@ static GimpEnumActionEntry image_convert_actions[] =
{
{ "image-convert-rgb", GIMP_STOCK_CONVERT_RGB,
N_("_RGB"), NULL, NULL,
GIMP_RGB,
GIMP_RGB, FALSE,
GIMP_HELP_IMAGE_CONVERT_RGB },
{ "image-convert-grayscale", GIMP_STOCK_CONVERT_GRAYSCALE,
N_("_Grayscale"), NULL, NULL,
GIMP_GRAY,
GIMP_GRAY, FALSE,
GIMP_HELP_IMAGE_CONVERT_GRAYSCALE },
{ "image-convert-indexed", GIMP_STOCK_CONVERT_INDEXED,
N_("_Indexed..."), NULL, NULL,
GIMP_INDEXED,
GIMP_INDEXED, FALSE,
GIMP_HELP_IMAGE_CONVERT_INDEXED }
};
......@@ -139,12 +139,12 @@ static GimpEnumActionEntry image_flip_actions[] =
{
{ "image-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
N_("Flip _Horizontally"), NULL, NULL,
GIMP_ORIENTATION_HORIZONTAL,
GIMP_ORIENTATION_HORIZONTAL, FALSE,
GIMP_HELP_IMAGE_FLIP_HORIZONTAL },
{ "image-flip-vertical", GIMP_STOCK_FLIP_VERTICAL,
N_("Flip _Vertically"), NULL, NULL,
GIMP_ORIENTATION_VERTICAL,
GIMP_ORIENTATION_VERTICAL, FALSE,
GIMP_HELP_IMAGE_FLIP_VERTICAL }
};
......@@ -153,17 +153,17 @@ static GimpEnumActionEntry image_rotate_actions[] =
{ "image-rotate-90", GIMP_STOCK_ROTATE_90,
/* please use the degree symbol in the translation */
N_("Rotate 90 degrees _CW"), NULL, NULL,
GIMP_ROTATE_90,
GIMP_ROTATE_90, FALSE,
GIMP_HELP_IMAGE_ROTATE_90 },
{ "image-rotate-180", GIMP_STOCK_ROTATE_180,
N_("Rotate _180 degrees"), NULL, NULL,
GIMP_ROTATE_180,
GIMP_ROTATE_180, FALSE,
GIMP_HELP_IMAGE_ROTATE_180 },
{ "image-rotate-270", GIMP_STOCK_ROTATE_270,
N_("Rotate 90 degrees CC_W"), NULL, NULL,
GIMP_ROTATE_270,
GIMP_ROTATE_270, FALSE,
GIMP_HELP_IMAGE_ROTATE_270 }
};
......
......@@ -206,12 +206,12 @@ static GimpEnumActionEntry layers_mask_apply_actions[] =
{
{ "layers-mask-apply", NULL,
N_("Apply Layer _Mask"), NULL, NULL,
GIMP_MASK_APPLY,
GIMP_MASK_APPLY, FALSE,
GIMP_HELP_LAYER_MASK_APPLY },
{ "layers-mask-delete", GTK_STOCK_DELETE,
N_("Delete Layer Mas_k"), "", NULL,
GIMP_MASK_DISCARD,
GIMP_MASK_DISCARD, FALSE,
GIMP_HELP_LAYER_MASK_DELETE }
};
......@@ -219,22 +219,22 @@ static GimpEnumActionEntry layers_mask_to_selection_actions[] =
{
{ "layers-mask-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("_Mask to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_REPLACE, FALSE,
GIMP_HELP_LAYER_MASK_SELECTION_REPLACE },
{ "layers-mask-selection-add", GIMP_STOCK_SELECTION_ADD,
N_("_Add to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_ADD,
GIMP_CHANNEL_OP_ADD, FALSE,
GIMP_HELP_LAYER_MASK_SELECTION_ADD },
{ "layers-mask-selection-subtract", GIMP_STOCK_SELECTION_SUBTRACT,
N_("_Subtract from Selection"), NULL, NULL,
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_CHANNEL_OP_SUBTRACT, FALSE,
GIMP_HELP_LAYER_MASK_SELECTION_SUBTRACT },
{ "layers-mask-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
N_("_Intersect with Selection"), NULL, NULL,
GIMP_CHANNEL_OP_INTERSECT,
GIMP_CHANNEL_OP_INTERSECT, FALSE,
GIMP_HELP_LAYER_MASK_SELECTION_INTERSECT }
};
......@@ -242,22 +242,22 @@ static GimpEnumActionEntry layers_alpha_to_selection_actions[] =
{
{ "layers-alpha-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Al_pha to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_REPLACE, FALSE,
GIMP_HELP_LAYER_ALPHA_SELECTION_REPLACE },
{ "layers-alpha-selection-add", GIMP_STOCK_SELECTION_ADD,
N_("A_dd to Selection"), NULL, NULL,
GIMP_CHANNEL_OP_ADD,
GIMP_CHANNEL_OP_ADD, FALSE,
GIMP_HELP_LAYER_ALPHA_SELECTION_ADD },
{ "layers-alpha-selection-subtract", GIMP_STOCK_SELECTION_SUBTRACT,
N_("_Subtract from Selection"), NULL, NULL,
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_CHANNEL_OP_SUBTRACT, FALSE,
GIMP_HELP_LAYER_ALPHA_SELECTION_SUBTRACT },
{ "layers-alpha-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
N_("_Intersect with Selection"), NULL, NULL,
GIMP_CHANNEL_OP_INTERSECT,
GIMP_CHANNEL_OP_INTERSECT, FALSE,
GIMP_HELP_LAYER_ALPHA_SELECTION_INTERSECT }
};
......@@ -265,22 +265,22 @@ static GimpEnumActionEntry layers_select_actions[] =
{
{ "layers-select-top", NULL,
N_("Select _Top Layer"), "Home", NULL,
GIMP_ACTION_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST, FALSE,
GIMP_HELP_LAYER_TOP },
{ "layers-select-bottom", NULL,
N_("Select _Bottom Layer"), "End", NULL,
GIMP_ACTION_SELECT_LAST,
GIMP_ACTION_SELECT_LAST, FALSE,
GIMP_HELP_LAYER_BOTTOM },
{ "layers-select-previous", NULL,
N_("Select _Previous Layer"), "Prior", NULL,
GIMP_ACTION_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
GIMP_HELP_LAYER_PREVIOUS },
{ "layers-select-next", NULL,
N_("Select _Next Layer"), "Next", NULL,
GIMP_ACTION_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT, FALSE,
GIMP_HELP_LAYER_NEXT }
};
......@@ -288,31 +288,31 @@ static GimpEnumActionEntry layers_opacity_actions[] =
{
{ "layers-opacity-set", GIMP_STOCK_TRANSPARENCY,
N_("Set Opacity"), NULL, NULL,
GIMP_ACTION_SELECT_SET,
GIMP_ACTION_SELECT_SET, TRUE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-transparent", GIMP_STOCK_TRANSPARENCY,
"Completely Transparent", NULL, NULL,
GIMP_ACTION_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST, FALSE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-opaque", GIMP_STOCK_TRANSPARENCY,
"Completely Opaque", NULL, NULL,
GIMP_ACTION_SELECT_LAST,
GIMP_ACTION_SELECT_LAST, FALSE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-decrease", GIMP_STOCK_TRANSPARENCY,
"More Transparent", NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-increase", GIMP_STOCK_TRANSPARENCY,
"More Opaque", NULL, NULL,
GIMP_ACTION_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT, FALSE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-decrease-skip", GIMP_STOCK_TRANSPARENCY,
"10% More Transparent", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
GIMP_HELP_LAYER_OPACITY },
{ "layers-opacity-increase-skip", GIMP_STOCK_TRANSPARENCY,
"10% More Opaque", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
GIMP_HELP_LAYER_OPACITY }
};
......@@ -320,19 +320,19 @@ static GimpEnumActionEntry layers_mode_actions[] =
{
{ "layers-mode-first", GIMP_STOCK_TOOL_PENCIL,
"First Layer Mode", NULL, NULL,
GIMP_ACTION_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST, FALSE,
GIMP_HELP_LAYER_MODE },
{ "layers-mode-last", GIMP_STOCK_TOOL_PENCIL,
"Last Layer Mode", NULL, NULL,
GIMP_ACTION_SELECT_LAST,
GIMP_ACTION_SELECT_LAST, FALSE,
GIMP_HELP_LAYER_MODE },
{ "layers-mode-previous", GIMP_STOCK_TOOL_PENCIL,
"Previous Layer Mode", NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
GIMP_HELP_LAYER_MODE },
{ "layers-mode-next", GIMP_STOCK_TOOL_PENCIL,
"Next Layer Mode", NULL, NULL,
GIMP_ACTION_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT, FALSE,
GIMP_HELP_LAYER_MODE }
};
......
......@@ -61,13 +61,13 @@ static GimpEnumActionEntry palette_editor_new_actions[] =
{ "palette-editor-new-color-fg", GTK_STOCK_NEW,
N_("New Color from _FG"), "",
N_("New color from FG"),
FALSE,
FALSE, FALSE,
GIMP_HELP_PALETTE_EDITOR_NEW },
{ "palette-editor-new-color-bg", GTK_STOCK_NEW,
N_("New Color from _BG"), "",
N_("New color from BG"),
TRUE,
TRUE, FALSE,
GIMP_HELP_PALETTE_EDITOR_NEW }
};
......@@ -76,19 +76,19 @@ static GimpEnumActionEntry palette_editor_zoom_actions[] =
{ "palette-editor-zoom-in", GTK_STOCK_ZOOM_IN,
N_("Zoom _In"), "",
N_("Zoom in"),
GIMP_ZOOM_IN,
GIMP_ZOOM_IN, FALSE,
GIMP_HELP_PALETTE_EDITOR_ZOOM_IN },
{ "palette-editor-zoom-out", GTK_STOCK_ZOOM_OUT,
N_("Zoom _Out"), "",
N_("Zoom out"),
GIMP_ZOOM_OUT,
GIMP_ZOOM_OUT, FALSE,
GIMP_HELP_PALETTE_EDITOR_ZOOM_OUT },
{ "palette-editor-zoom-all", GTK_STOCK_ZOOM_FIT,
N_("Zoom _All"), "",
N_("Zoom all"),
GIMP_ZOOM_TO, /* abused */
GIMP_ZOOM_TO /* abused */, FALSE,
GIMP_HELP_PALETTE_EDITOR_ZOOM_ALL }
};
......
......@@ -91,12 +91,12 @@ static GimpEnumActionEntry plug_in_repeat_actions[] =
{
{ "plug-in-repeat", GTK_STOCK_EXECUTE,
N_("Repeat Last"), "<control>F", NULL,
FALSE,
FALSE, FALSE,
GIMP_HELP_FILTER_REPEAT },
{ "plug-in-reshow", GIMP_STOCK_RESHOW_FILTER,
N_("Re-Show Last"), "<control><shift>F", NULL,
TRUE,
TRUE, FALSE,
GIMP_HELP_FILTER_RESHOW }
};
......
......@@ -161,30 +161,30 @@ static GimpEnumActionEntry vectors_to_selection_actions[] =
{ "vectors-selection-replace", GIMP_STOCK_SELECTION_REPLACE,
N_("Path to Sele_ction"), NULL,
N_("Path to selection"),
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_REPLACE, FALSE,
GIMP_HELP_PATH_SELECTION_REPLACE },
{ "vectors-selection-from-vectors", GIMP_STOCK_SELECTION_REPLACE,
N_("Fr_om Path"), "<shift>V", NULL,
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_REPLACE, FALSE,
GIMP_HELP_PATH_SELECTION_REPLACE },
{ "vectors-selection-add", GIMP_STOCK_SELECTION_ADD,
N_("_Add to Selection"), NULL,
N_("Add"),
GIMP_CHANNEL_OP_ADD,
GIMP_CHANNEL_OP_ADD, FALSE,
GIMP_HELP_PATH_SELECTION_ADD },
{ "vectors-selection-subtract", GIMP_STOCK_SELECTION_SUBTRACT,
N_("_Subtract from Selection"), NULL,
N_("Subtract"),
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_CHANNEL_OP_SUBTRACT, FALSE,
GIMP_HELP_PATH_SELECTION_SUBTRACT },
{ "vectors-selection-intersect", GIMP_STOCK_SELECTION_INTERSECT,
N_("_Intersect with Selection"), NULL,
N_("Intersect"),
GIMP_CHANNEL_OP_INTERSECT,
GIMP_CHANNEL_OP_INTERSECT, FALSE,
GIMP_HELP_PATH_SELECTION_INTERSECT }
};
......@@ -193,18 +193,18 @@ static GimpEnumActionEntry vectors_selection_to_vectors_actions[] =
{ "vectors-selection-to-vectors", GIMP_STOCK_SELECTION_TO_PATH,
N_("Selecti_on to Path"), NULL,
N_("Selection to path"),
FALSE,
FALSE, FALSE,
GIMP_HELP_SELECTION_TO_PATH },
{ "vectors-selection-to-vectors-short", GIMP_STOCK_SELECTION_TO_PATH,
N_("To _Path"), NULL, NULL,
FALSE,
FALSE, FALSE,
GIMP_HELP_SELECTION_TO_PATH },
{ "vectors-selection-to-vectors-advanced", GIMP_STOCK_SELECTION_TO_PATH,
N_("Selection to Path (_Advanced)"), NULL,
N_("Advanced options"),
TRUE,
TRUE, FALSE,
GIMP_HELP_SELECTION_TO_PATH }
};
......
......@@ -192,39 +192,39 @@ static GimpEnumActionEntry view_zoom_actions[] =
{
{ "view-zoom", NULL,
"Set zoom factor", NULL, NULL,
GIMP_ACTION_SELECT_SET,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "view-zoom-minimum", GTK_STOCK_ZOOM_OUT,
"Zoom out as far as possible", NULL, NULL,
GIMP_ACTION_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST, FALSE,
GIMP_HELP_VIEW_ZOOM_OUT },
{ "view-zoom-maximum", GTK_STOCK_ZOOM_IN,
"Zoom in as far as possible", NULL, NULL,
GIMP_ACTION_SELECT_LAST,
GIMP_ACTION_SELECT_LAST, FALSE,
GIMP_HELP_VIEW_ZOOM_IN },
{ "view-zoom-out", GTK_STOCK_ZOOM_OUT,
N_("Zoom _Out"), "minus",
N_("Zoom out"),
GIMP_ACTION_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
GIMP_HELP_VIEW_ZOOM_OUT },
{ "view-zoom-in", GTK_STOCK_ZOOM_IN,
N_("Zoom _In"), "plus",
N_("Zoom in"),
GIMP_ACTION_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT, FALSE,
GIMP_HELP_VIEW_ZOOM_IN },
{ "view-zoom-out-skip", GTK_STOCK_ZOOM_OUT,
"Zoom out a lot", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
GIMP_HELP_VIEW_ZOOM_OUT },
{ "view-zoom-in-skip", GTK_STOCK_ZOOM_IN,
"Zoom in a lot", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
GIMP_HELP_VIEW_ZOOM_IN }
};
......@@ -286,27 +286,27 @@ static GimpEnumActionEntry view_padding_color_actions[] =
{
{ "view-padding-color-theme", NULL,
N_("From _Theme"), NULL, NULL,
GIMP_CANVAS_PADDING_MODE_DEFAULT,
GIMP_CANVAS_PADDING_MODE_DEFAULT, FALSE,
GIMP_HELP_VIEW_PADDING_COLOR },
{ "view-padding-color-light-check", NULL,
N_("_Light Check Color"), NULL, NULL,
GIMP_CANVAS_PADDING_MODE_LIGHT_CHECK,
GIMP_CANVAS_PADDING_MODE_LIGHT_CHECK, FALSE,
GIMP_HELP_VIEW_PADDING_COLOR },
{ "view-padding-color-dark-check", NULL,
N_("_Dark Check Color"), NULL, NULL,
GIMP_CANVAS_PADDING_MODE_DARK_CHECK,
GIMP_CANVAS_PADDING_MODE_DARK_CHECK, FALSE,
GIMP_HELP_VIEW_PADDING_COLOR },
{ "view-padding-color-custom", GTK_STOCK_SELECT_COLOR,
N_("Select _Custom Color..."), NULL, NULL,
GIMP_CANVAS_PADDING_MODE_CUSTOM,
GIMP_CANVAS_PADDING_MODE_CUSTOM, FALSE,
GIMP_HELP_VIEW_PADDING_COLOR },
{ "view-padding-color-prefs", GIMP_STOCK_RESET,
N_("As in _Preferences"), NULL, NULL,
GIMP_CANVAS_PADDING_MODE_RESET,
GIMP_CANVAS_PADDING_MODE_RESET, FALSE,
GIMP_HELP_VIEW_PADDING_COLOR }
};
......@@ -314,37 +314,37 @@ static GimpEnumActionEntry view_scroll_horizontal_actions[] =
{
{ "view-scroll-horizontal", NULL,
"Set horizontal scroll offset", NULL, NULL,
GIMP_ACTION_SELECT_SET,
GIMP_ACTION_SELECT_SET, TRUE,
NULL },
{ "view-scroll-left-border", NULL,
"Scroll to left border", NULL, NULL,
GIMP_ACTION_SELECT_FIRST,
GIMP_ACTION_SELECT_FIRST, FALSE,
NULL },
{ "view-scroll-right-border", NULL,
"Scroll to right border", NULL, NULL,
GIMP_ACTION_SELECT_LAST,
GIMP_ACTION_SELECT_LAST, FALSE,
NULL },
{ "view-scroll-left", NULL,
"Scroll left", NULL, NULL,
GIMP_ACTION_SELECT_PREVIOUS,
GIMP_ACTION_SELECT_PREVIOUS, FALSE,
NULL },
{ "view-scroll-right", NULL,
"Scroll right", NULL, NULL,
GIMP_ACTION_SELECT_NEXT,
GIMP_ACTION_SELECT_NEXT, FALSE,
NULL },
{ "view-scroll-page-left", NULL,
"Scroll page left", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_PREVIOUS,
GIMP_ACTION_SELECT_SKIP_PREVIOUS, FALSE,
NULL },
{ "view-scroll-page-right", NULL,
"Scroll page right", NULL, NULL,
GIMP_ACTION_SELECT_SKIP_NEXT,
GIMP_ACTION_SELECT_SKIP_NEXT, FALSE,
NULL }
};
......@@ -352,37 +352,37 @@ static GimpEnumActionEntry view_scroll_vertical_actions[] =
{
{ "view-scroll-vertical", NULL,
"Set vertical scroll offset", NULL, NULL,