Commit f36a63f6 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Henrik Brix Andersen

removed function gimp_menu_path_strip_uline() ...

2003-08-09 Henrik Brix Andersen <brix@gimp.org>

* gimp/app/widgets/gimpwidgets-utils.[ch]: removed function
gimp_menu_path_strip_uline() ...

* gimp/libgimpbase/gimputils.[ch]: ... and added it here under the
name gimp_strip_uline()

* gimp/devel-docs/libgimpbase/libgimpbase-sections.txt: added
gimp_strip_uline to gimputils section

* gimp/app/plug-in/plug-in.c
* gimp/app/widgets/gimpitemfactory.c
* gimp/app/widgets/gimptoolbox.
* gimp/app/gui/plug-in-menus.c: changed accordingly

* gimp/plug-ins/script-fu/script-fu-scripts.c
(script_fu_interface): use gimp_strip_uline() to strip mnemonics
from script-fu menu paths

* gimp/app/gui/vectors-menu.c
* gimp/app/gui/templates-menu.c
* gimp/app/gui/qmask-menu.c
* gimp/app/gui/palettes-menu.c
* gimp/app/gui/palette-editor-menu.c
* gimp/app/gui/images-menu.c
* gimp/app/gui/gradients-menu.c
* gimp/app/gui/gradient-editor-menu.c
* gimp/app/gui/documents-menu.c
* gimp/app/gui/dialogs-menu.c
* gimp/app/gui/colormap-editor-menu.c
* gimp/app/gui/channels-menu.c
* gimp/app/gui/buffers-menu.c
* gimp/app/gui/brushes-menu.c
* gimp/app/gui/layers-menu.c
* gimp/plug-ins/pygimp/plug-ins/clothify.py
* gimp/plug-ins/pygimp/plug-ins/shadow_bevel.py
* gimp/plug-ins/pygimp/plug-ins/whirlpinch.py
* gimp/plug-ins/pygimp/plug-ins/foggify.py
* gimp/plug-ins/script-fu/scripts/*.scm
* gimp/plug-ins/script-fu/script-fu.c: added mnemonics fixing more
of bug #106991

* gimp/app/gui/error-console-menu.c (error_console_menu_update):
updated menu item names, added mnemonics

* gimp/plug-ins/common/animoptimize.c *
gimp/plug-ins/common/animationplay.c: don't prepend every menu
entry with "Animation"
parent dd2464c1
2003-08-11 Henrik Brix Andersen <brix@gimp.org>
* gimp/app/widgets/gimpwidgets-utils.[ch]: removed function
gimp_menu_path_strip_uline() ...
* gimp/libgimpbase/gimputils.[ch]: ... and added it here under the
name gimp_strip_uline()
* gimp/devel-docs/libgimpbase/libgimpbase-sections.txt: added
gimp_strip_uline to gimputils section
* gimp/app/plug-in/plug-in.c
* gimp/app/widgets/gimpitemfactory.c
* gimp/app/widgets/gimptoolbox.
* gimp/app/gui/plug-in-menus.c: changed accordingly
* gimp/plug-ins/script-fu/script-fu-scripts.c
(script_fu_interface): use gimp_strip_uline() to strip mnemonics
from script-fu menu paths
* gimp/app/gui/vectors-menu.c
* gimp/app/gui/templates-menu.c
* gimp/app/gui/qmask-menu.c
* gimp/app/gui/palettes-menu.c
* gimp/app/gui/palette-editor-menu.c
* gimp/app/gui/images-menu.c
* gimp/app/gui/gradients-menu.c
* gimp/app/gui/gradient-editor-menu.c
* gimp/app/gui/documents-menu.c
* gimp/app/gui/dialogs-menu.c
* gimp/app/gui/colormap-editor-menu.c
* gimp/app/gui/channels-menu.c
* gimp/app/gui/buffers-menu.c
* gimp/app/gui/brushes-menu.c
* gimp/app/gui/layers-menu.c
* gimp/plug-ins/pygimp/plug-ins/clothify.py
* gimp/plug-ins/pygimp/plug-ins/shadow_bevel.py
* gimp/plug-ins/pygimp/plug-ins/whirlpinch.py
* gimp/plug-ins/pygimp/plug-ins/foggify.py
* gimp/plug-ins/script-fu/scripts/*.scm
* gimp/plug-ins/script-fu/script-fu.c: added mnemonics fixing more
of bug #106991
* gimp/app/gui/error-console-menu.c (error_console_menu_update):
updated menu item names, added mnemonics
* gimp/plug-ins/common/animoptimize.c *
gimp/plug-ins/common/animationplay.c: don't prepend every menu
entry with "Animation"
2003-08-10 Dave Neary <bolsh@gimp.org>
* Made 1.3.18 release.
......@@ -41,22 +41,22 @@
GimpItemFactoryEntry brushes_menu_entries[] =
{
{ { N_("/New Brush"), NULL,
{ { N_("/_New Brush"), NULL,
data_new_data_cmd_callback, 0,
"<StockItem>", GTK_STOCK_NEW },
NULL,
NULL, NULL },
{ { N_("/Duplicate Brush"), NULL,
{ { N_("/D_uplicate Brush"), NULL,
data_duplicate_data_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_DUPLICATE },
NULL,
NULL, NULL },
{ { N_("/Edit Brush..."), NULL,
{ { N_("/_Edit Brush..."), NULL,
data_edit_data_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_EDIT },
NULL,
NULL, NULL },
{ { N_("/Delete Brush..."), NULL,
{ { N_("/_Delete Brush..."), NULL,
data_delete_data_cmd_callback, 0,
"<StockItem>", GTK_STOCK_DELETE },
NULL,
......@@ -64,7 +64,7 @@ GimpItemFactoryEntry brushes_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Refresh Brushes"), NULL,
{ { N_("/_Refresh Brushes"), NULL,
data_refresh_data_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REFRESH },
NULL,
......
......@@ -38,22 +38,22 @@
GimpItemFactoryEntry buffers_menu_entries[] =
{
{ { N_("/Paste Buffer"), NULL,
{ { N_("/_Paste Buffer"), NULL,
buffers_paste_buffer_cmd_callback, 0,
"<StockItem>", GTK_STOCK_PASTE },
NULL,
NULL, NULL },
{ { N_("/Paste Buffer Into"), NULL,
{ { N_("/Paste Buffer _Into"), NULL,
buffers_paste_buffer_into_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_PASTE_INTO },
NULL,
NULL, NULL },
{ { N_("/Paste Buffer as New"), NULL,
{ { N_("/Paste Buffer as _New"), NULL,
buffers_paste_buffer_as_new_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_PASTE_AS_NEW },
NULL,
NULL, NULL },
{ { N_("/Delete Buffer"), NULL,
{ { N_("/_Delete Buffer"), NULL,
buffers_delete_buffer_cmd_callback, 0,
"<StockItem>", GTK_STOCK_DELETE },
NULL,
......
......@@ -40,22 +40,22 @@
GimpItemFactoryEntry channels_menu_entries[] =
{
{ { N_("/New Channel..."), "<control>N",
{ { N_("/_New Channel..."), "<control>N",
channels_new_channel_cmd_callback, 0,
"<StockItem>", GTK_STOCK_NEW },
NULL,
"dialogs/new_channel.html", NULL },
{ { N_("/Raise Channel"), "<control>F",
{ { N_("/_Raise Channel"), "<control>F",
channels_raise_channel_cmd_callback, 0,
"<StockItem>", GTK_STOCK_GO_UP },
NULL,
"raise_channel.html", NULL },
{ { N_("/Lower Channel"), "<control>B",
{ { N_("/_Lower Channel"), "<control>B",
channels_lower_channel_cmd_callback, 0,
"<StockItem>", GTK_STOCK_GO_DOWN },
NULL,
"lower_channel.html", NULL },
{ { N_("/Duplicate Channel"), "<control>C",
{ { N_("/D_uplicate Channel"), "<control>C",
channels_duplicate_channel_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_DUPLICATE },
NULL,
......@@ -63,22 +63,22 @@ GimpItemFactoryEntry channels_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Channel to Selection"), "<control>S",
{ { N_("/Channel to Sele_ction"), "<control>S",
channels_channel_to_sel_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_REPLACE },
NULL,
"channel_to_selection.html", NULL },
{ { N_("/Add to Selection"), NULL,
{ { N_("/_Add to Selection"), NULL,
channels_add_channel_to_sel_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_ADD },
NULL,
"channel_to_selection.html#add", NULL },
{ { N_("/Subtract from Selection"), NULL,
{ { N_("/_Subtract from Selection"), NULL,
channels_sub_channel_from_sel_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_SUBTRACT },
NULL,
"channel_to_selection.html#subtract", NULL },
{ { N_("/Intersect with Selection"), NULL,
{ { N_("/_Intersect with Selection"), NULL,
channels_intersect_channel_with_sel_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_SELECTION_INTERSECT },
NULL,
......@@ -86,7 +86,7 @@ GimpItemFactoryEntry channels_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Delete Channel"), "<control>X",
{ { N_("/_Delete Channel"), "<control>X",
channels_delete_channel_cmd_callback, 0,
"<StockItem>", GTK_STOCK_DELETE },
NULL,
......@@ -94,7 +94,7 @@ GimpItemFactoryEntry channels_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Edit Channel Attributes..."), NULL,
{ { N_("/_Edit Channel Attributes..."), NULL,
channels_edit_channel_attributes_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_EDIT },
NULL,
......
......@@ -37,12 +37,12 @@
GimpItemFactoryEntry colormap_editor_menu_entries[] =
{
{ { N_("/Add Color"), NULL,
{ { N_("/_Add Color"), NULL,
colormap_editor_add_color_cmd_callback, 0,
"<StockItem>", GTK_STOCK_NEW },
NULL,
NULL, NULL },
{ { N_("/Edit Color..."), NULL,
{ { N_("/_Edit Color..."), NULL,
colormap_editor_edit_color_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_EDIT },
NULL,
......
......@@ -54,109 +54,111 @@
GimpItemFactoryEntry dialogs_menu_entries[] =
{
{ { N_("/Select Tab"), NULL, NULL, 0 },
{ { N_("/_Select Tab"), NULL, NULL, 0 },
NULL, NULL, NULL },
ADD_TAB (N_("/Add Tab/Tool Options..."), "gimp-tool-options",
MENU_BRANCH ("/_Add Tab"),
ADD_TAB (N_("/Add Tab/Tool _Options..."), "gimp-tool-options",
"<StockItem>", GIMP_STOCK_TOOL_OPTIONS),
ADD_TAB (N_("/Add Tab/Device Status..."), "gimp-device-status",
ADD_TAB (N_("/Add Tab/_Device Status..."), "gimp-device-status",
"<StockItem>", GIMP_STOCK_DEVICE_STATUS),
MENU_SEPARATOR ("/Add Tab/---"),
ADD_TAB (N_("/Add Tab/Layers..."), "gimp-layer-list",
ADD_TAB (N_("/Add Tab/_Layers..."), "gimp-layer-list",
"<StockItem>", GIMP_STOCK_LAYERS),
ADD_TAB (N_("/Add Tab/Channels..."), "gimp-channel-list",
ADD_TAB (N_("/Add Tab/_Channels..."), "gimp-channel-list",
"<StockItem>", GIMP_STOCK_CHANNELS),
ADD_TAB (N_("/Add Tab/Paths..."), "gimp-vectors-list",
ADD_TAB (N_("/Add Tab/_Paths..."), "gimp-vectors-list",
"<StockItem>", GIMP_STOCK_PATHS),
ADD_TAB (N_("/Add Tab/Indexed Palette..."), "gimp-indexed-palette",
ADD_TAB (N_("/Add Tab/_Indexed Palette..."), "gimp-indexed-palette",
"<StockItem>", GTK_STOCK_SELECT_COLOR),
ADD_TAB (N_("/Add Tab/Selection Editor..."), "gimp-selection-editor",
ADD_TAB (N_("/Add Tab/_Selection Editor..."), "gimp-selection-editor",
"<StockItem>", GIMP_STOCK_TOOL_RECT_SELECT),
ADD_TAB (N_("/Add Tab/Navigation..."), "gimp-navigation-view",
ADD_TAB (N_("/Add Tab/Na_vigation..."), "gimp-navigation-view",
"<StockItem>", GIMP_STOCK_NAVIGATION),
ADD_TAB (N_("/Add Tab/Undo History..."), "gimp-undo-history",
ADD_TAB (N_("/Add Tab/_Undo History..."), "gimp-undo-history",
"<StockItem>", GTK_STOCK_UNDO),
MENU_SEPARATOR ("/Add Tab/---"),
ADD_TAB (N_("/Add Tab/Colors..."), "gimp-color-editor",
ADD_TAB (N_("/Add Tab/Colo_rs..."), "gimp-color-editor",
"<StockItem>", GIMP_STOCK_DEFAULT_COLORS),
ADD_TAB (N_("/Add Tab/Brushes..."), "gimp-brush-grid",
ADD_TAB (N_("/Add Tab/Brus_hes..."), "gimp-brush-grid",
"<StockItem>", GIMP_STOCK_TOOL_PAINTBRUSH),
ADD_TAB (N_("/Add Tab/Patterns..."), "gimp-pattern-grid",
ADD_TAB (N_("/Add Tab/P_atterns..."), "gimp-pattern-grid",
"<StockItem>", GIMP_STOCK_TOOL_BUCKET_FILL),
ADD_TAB (N_("/Add Tab/Gradients..."), "gimp-gradient-list",
ADD_TAB (N_("/Add Tab/_Gradients..."), "gimp-gradient-list",
"<StockItem>", GIMP_STOCK_TOOL_BLEND),
ADD_TAB (N_("/Add Tab/Palettes..."), "gimp-palette-list",
ADD_TAB (N_("/Add Tab/Pal_ettes..."), "gimp-palette-list",
"<StockItem>", GTK_STOCK_SELECT_COLOR),
ADD_TAB (N_("/Add Tab/Fonts..."), "gimp-font-list",
ADD_TAB (N_("/Add Tab/_Fonts..."), "gimp-font-list",
"<StockItem>", GTK_STOCK_SELECT_FONT),
ADD_TAB (N_("/Add Tab/Buffers..."), "gimp-buffer-list",
ADD_TAB (N_("/Add Tab/_Buffers..."), "gimp-buffer-list",
"<StockItem>", GTK_STOCK_PASTE),
MENU_SEPARATOR ("/Add Tab/---"),
ADD_TAB (N_("/Add Tab/Images..."), "gimp-image-list",
ADD_TAB (N_("/Add Tab/I_mages..."), "gimp-image-list",
"<StockItem>", GIMP_STOCK_IMAGES),
ADD_TAB (N_("/Add Tab/Document History..."), "gimp-document-list",
ADD_TAB (N_("/Add Tab/Document Histor_y..."), "gimp-document-list",
"<StockItem>", GTK_STOCK_OPEN),
ADD_TAB (N_("/Add Tab/Templates..."), "gimp-template-list",
ADD_TAB (N_("/Add Tab/_Templates..."), "gimp-template-list",
"<StockItem>", GIMP_STOCK_TEMPLATE),
ADD_TAB (N_("/Add Tab/Error Console..."), "gimp-error-console",
ADD_TAB (N_("/Add Tab/Error Co_nsole..."), "gimp-error-console",
"<StockItem>", GIMP_STOCK_WARNING),
MENU_SEPARATOR ("/Add Tab/---"),
ADD_TAB (N_("/Add Tab/Tools..."), "gimp-tool-list", NULL, NULL),
{ { N_("/Remove Tab"), NULL,
{ { N_("/_Remove Tab"), NULL,
dialogs_remove_tab_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REMOVE },
NULL, NULL, NULL },
MENU_SEPARATOR ("/---"),
MENU_BRANCH ("/Preview Size"),
MENU_BRANCH ("/Preview Si_ze"),
{ { N_("/Preview Size/Tiny"), NULL,
{ { N_("/Preview Size/_Tiny"), NULL,
dialogs_preview_size_cmd_callback,
GIMP_PREVIEW_SIZE_TINY, "<RadioItem>" },
NULL, NULL, NULL },
PREVIEW_SIZE (N_("/Preview Size/Extra Small"), GIMP_PREVIEW_SIZE_EXTRA_SMALL),
PREVIEW_SIZE (N_("/Preview Size/Small"), GIMP_PREVIEW_SIZE_SMALL),
PREVIEW_SIZE (N_("/Preview Size/Medium"), GIMP_PREVIEW_SIZE_MEDIUM),
PREVIEW_SIZE (N_("/Preview Size/Large"), GIMP_PREVIEW_SIZE_LARGE),
PREVIEW_SIZE (N_("/Preview Size/Extra Large"), GIMP_PREVIEW_SIZE_EXTRA_LARGE),
PREVIEW_SIZE (N_("/Preview Size/Huge"), GIMP_PREVIEW_SIZE_HUGE),
PREVIEW_SIZE (N_("/Preview Size/Enormous"), GIMP_PREVIEW_SIZE_ENORMOUS),
PREVIEW_SIZE (N_("/Preview Size/Gigantic"), GIMP_PREVIEW_SIZE_GIGANTIC),
PREVIEW_SIZE (N_("/Preview Size/E_xtra Small"), GIMP_PREVIEW_SIZE_EXTRA_SMALL),
PREVIEW_SIZE (N_("/Preview Size/_Small"), GIMP_PREVIEW_SIZE_SMALL),
PREVIEW_SIZE (N_("/Preview Size/_Medium"), GIMP_PREVIEW_SIZE_MEDIUM),
PREVIEW_SIZE (N_("/Preview Size/_Large"), GIMP_PREVIEW_SIZE_LARGE),
PREVIEW_SIZE (N_("/Preview Size/Ex_tra Large"), GIMP_PREVIEW_SIZE_EXTRA_LARGE),
PREVIEW_SIZE (N_("/Preview Size/_Huge"), GIMP_PREVIEW_SIZE_HUGE),
PREVIEW_SIZE (N_("/Preview Size/_Enormous"), GIMP_PREVIEW_SIZE_ENORMOUS),
PREVIEW_SIZE (N_("/Preview Size/_Gigantic"), GIMP_PREVIEW_SIZE_GIGANTIC),
MENU_BRANCH ("/Tab Style"),
MENU_BRANCH ("/_Tab Style"),
{ { N_("/Tab Style/Icon"), NULL,
{ { N_("/Tab Style/_Icon"), NULL,
dialogs_tab_style_cmd_callback,
GIMP_TAB_STYLE_ICON, "<RadioItem>" },
NULL, NULL, NULL },
TAB_STYLE (N_("/Tab Style/Text"), GIMP_TAB_STYLE_NAME),
TAB_STYLE (N_("/Tab Style/Icon & Text"), GIMP_TAB_STYLE_ICON_NAME),
TAB_STYLE (N_("/Tab Style/_Text"), GIMP_TAB_STYLE_NAME),
TAB_STYLE (N_("/Tab Style/I_con & Text"), GIMP_TAB_STYLE_ICON_NAME),
{ { N_("/View as List"), NULL,
{ { N_("/View as _List"), NULL,
dialogs_toggle_view_cmd_callback, GIMP_VIEW_TYPE_LIST, "<RadioItem>" },
NULL, NULL, NULL },
{ { N_("/View as Grid"), NULL,
{ { N_("/View as _Grid"), NULL,
dialogs_toggle_view_cmd_callback, GIMP_VIEW_TYPE_GRID, "/View as List" },
NULL, NULL, NULL },
MENU_SEPARATOR ("/image-menu-separator"),
{ { N_("/Show Image Menu"), NULL,
{ { N_("/Show Image _Menu"), NULL,
dialogs_toggle_image_menu_cmd_callback, 0, "<ToggleItem>" },
NULL, NULL, NULL },
{ { N_("/Auto Follow Active Image"), NULL,
{ { N_("/Auto Follow Active _Image"), NULL,
dialogs_toggle_auto_cmd_callback, 0, "<ToggleItem>" },
NULL, NULL, NULL }
};
......
......@@ -39,34 +39,34 @@
GimpItemFactoryEntry documents_menu_entries[] =
{
{ { N_("/Open Image"), "",
{ { N_("/_Open Image"), "",
documents_open_document_cmd_callback, 0,
"<StockItem>", GTK_STOCK_OPEN },
NULL, NULL, NULL },
{ { N_("/Raise or Open Image"), "",
{ { N_("/_Raise or Open Image"), "",
documents_raise_or_open_document_cmd_callback, 0,
"<StockItem>", GTK_STOCK_OPEN },
NULL, NULL, NULL },
{ { N_("/File Open Dialog..."), "",
{ { N_("/File Open _Dialog..."), "",
documents_file_open_dialog_cmd_callback, 0,
"<StockItem>", GTK_STOCK_OPEN },
NULL, NULL, NULL },
{ { N_("/Remove Entry"), NULL,
{ { N_("/Remove _Entry"), NULL,
documents_remove_document_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REMOVE },
NULL, NULL, NULL },
MENU_SEPARATOR ("/---"),
{ { N_("/Recreate Preview"), NULL,
{ { N_("/Recreate _Preview"), NULL,
documents_recreate_preview_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REFRESH },
NULL, NULL, NULL },
{ { N_("/Reload all Previews"), NULL,
{ { N_("/Reload _all Previews"), NULL,
documents_reload_previews_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REFRESH },
NULL, NULL, NULL },
{ { N_("/Remove Dangling Entries"), NULL,
{ { N_("/Remove Dangling E_ntries"), NULL,
documents_delete_dangling_documents_cmd_callback, 0,
"<StockItem>", GTK_STOCK_REFRESH },
NULL, NULL, NULL },
......
......@@ -35,18 +35,18 @@
GimpItemFactoryEntry error_console_menu_entries[] =
{
{ { N_("/Clear Errors"), "",
{ { N_("/_Clear Errors"), "",
error_console_clear_cmd_callback, 0,
"<StockItem>", GTK_STOCK_CLEAR },
NULL, NULL, NULL },
{ { "/---", NULL, NULL, 0, "<Separator>", NULL }, NULL, NULL, NULL },
{ { N_("/Save all Errors to File..."), "",
{ { N_("/Save _All Errors to File..."), "",
error_console_save_all_cmd_callback, 0,
"<StockItem>", GTK_STOCK_SAVE_AS },
NULL, NULL, NULL },
{ { N_("/Save Selection to File..."), "",
{ { N_("/Save _Selection to File..."), "",
error_console_save_selection_cmd_callback, 0,
"<StockItem>", GTK_STOCK_SAVE_AS },
NULL, NULL, NULL }
......@@ -70,8 +70,8 @@ error_console_menu_update (GtkItemFactory *factory,
#define SET_SENSITIVE(menu,condition) \
gimp_item_factory_set_sensitive (factory, menu, (condition) != 0)
SET_SENSITIVE ("/Clear Console", TRUE);
SET_SENSITIVE ("/Save all Errors to File...", TRUE);
SET_SENSITIVE ("/Clear Errors", TRUE);
SET_SENSITIVE ("/Save All Errors to File...", TRUE);
SET_SENSITIVE ("/Save Selection to File...", selection);
#undef SET_SENSITIVE
......
......@@ -55,24 +55,26 @@
GimpItemFactoryEntry gradient_editor_menu_entries[] =
{
{ { N_("/Left Endpoint's Color..."), NULL,
{ { N_("/L_eft Endpoint's Color..."), NULL,
gradient_editor_left_color_cmd_callback, 0 },
NULL,
NULL, NULL },
{ { N_("/Load Left Color From/Left Neighbor's Right Endpoint"), NULL,
MENU_BRANCH (N_("/_Load Left Color From")),
{ { N_("/Load Left Color From/_Left Neighbor's Right Endpoint"), NULL,
gradient_editor_load_left_cmd_callback, 0 },
NULL,
NULL, NULL },
{ { N_("/Load Left Color From/Right Endpoint"), NULL,
{ { N_("/Load Left Color From/_Right Endpoint"), NULL,
gradient_editor_load_left_cmd_callback, 1 },
NULL,
NULL, NULL },
{ { N_("/Load Left Color From/FG Color"), NULL,
{ { N_("/Load Left Color From/_FG Color"), NULL,
gradient_editor_load_left_cmd_callback, 2 },
NULL,
NULL, NULL },
{ { N_("/Load Left Color From/BG Color"), NULL,
{ { N_("/Load Left Color From/_BG Color"), NULL,
gradient_editor_load_left_cmd_callback, 3 },
NULL,
NULL, NULL },
......@@ -90,7 +92,7 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
LOAD_LEFT_FROM ("09", 12),
LOAD_LEFT_FROM ("10", 13),
MENU_BRANCH (N_("/Save Left Color To")),
MENU_BRANCH (N_("/_Save Left Color To")),
SAVE_LEFT_TO ("01", 0),
SAVE_LEFT_TO ("02", 1),
......@@ -105,24 +107,26 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Right Endpoint's Color..."), NULL,
{ { N_("/R_ight Endpoint's Color..."), NULL,
gradient_editor_right_color_cmd_callback, 0 },
NULL,
NULL, NULL },
{ { N_("/Load Right Color From/Right Neighbor's Left Endpoint"), NULL,
MENU_BRANCH (N_("/Load Right Color Fr_om")),
{ { N_("/Load Right Color From/_Right Neighbor's Left Endpoint"), NULL,
gradient_editor_load_right_cmd_callback, 0 },
NULL,
NULL, NULL },
{ { N_("/Load Right Color From/Left Endpoint"), NULL,
{ { N_("/Load Right Color From/_Left Endpoint"), NULL,
gradient_editor_load_right_cmd_callback, 1 },
NULL,
NULL, NULL },
{ { N_("/Load Right Color From/FG Color"), NULL,
{ { N_("/Load Right Color From/_FG Color"), NULL,
gradient_editor_load_right_cmd_callback, 2 },
NULL,
NULL, NULL },
{ { N_("/Load Right Color From/BG Color"), NULL,
{ { N_("/Load Right Color From/_BG Color"), NULL,
gradient_editor_load_right_cmd_callback, 3 },
NULL,
NULL, NULL },
......@@ -140,7 +144,7 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
LOAD_RIGHT_FROM ("09", 12),
LOAD_RIGHT_FROM ("10", 13),
MENU_BRANCH (N_("/Save Right Color To")),
MENU_BRANCH (N_("/Sa_ve Right Color To")),
SAVE_RIGHT_TO ("01", 0),
SAVE_RIGHT_TO ("02", 1),
......@@ -155,27 +159,27 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/blendingfunction/Linear"), NULL,
{ { N_("/blendingfunction/_Linear"), NULL,
gradient_editor_blending_func_cmd_callback,
GIMP_GRAD_LINEAR, "<RadioItem>" },
NULL,
NULL, NULL },
{ { N_("/blendingfunction/Curved"), NULL,
{ { N_("/blendingfunction/_Curved"), NULL,
gradient_editor_blending_func_cmd_callback,
GIMP_GRAD_CURVED, "/blendingfunction/Linear" },
NULL,
NULL, NULL },
{ { N_("/blendingfunction/Sinusodial"), NULL,
{ { N_("/blendingfunction/_Sinusodial"), NULL,
gradient_editor_blending_func_cmd_callback,
GIMP_GRAD_SINE, "/blendingfunction/Linear" },
NULL,
NULL, NULL },
{ { N_("/blendingfunction/Spherical (increasing)"), NULL,
{ { N_("/blendingfunction/Spherical (i_ncreasing)"), NULL,
gradient_editor_blending_func_cmd_callback,
GIMP_GRAD_SPHERE_INCREASING, "/blendingfunction/Linear" },
NULL,
NULL, NULL },
{ { N_("/blendingfunction/Spherical (decreasing)"), NULL,
{ { N_("/blendingfunction/Spherical (_decreasing)"), NULL,
gradient_editor_blending_func_cmd_callback,
GIMP_GRAD_SPHERE_DECREASING, "/blendingfunction/Linear" },
NULL,
......@@ -185,17 +189,17 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
NULL,
NULL, NULL },
{ { N_("/coloringtype/RGB"), NULL,
{ { N_("/coloringtype/_RGB"), NULL,
gradient_editor_coloring_type_cmd_callback,
GIMP_GRAD_RGB, "<RadioItem>" },
NULL,
NULL, NULL },
{ { N_("/coloringtype/HSV (counter-clockwise hue)"), NULL,
{ { N_("/coloringtype/HSV (_counter-clockwise hue)"), NULL,
gradient_editor_coloring_type_cmd_callback,
GIMP_GRAD_HSV_CCW, "/coloringtype/RGB" },
NULL,
NULL, NULL },
{ { N_("/coloringtype/HSV (clockwise hue)"), NULL,
{ { N_("/coloringtype/HSV (clockwise _hue)"), NULL,
gradient_editor_coloring_type_cmd_callback,
GIMP_GRAD_HSV_CW, "/coloringtype/RGB" },
NULL,
......@@ -238,11 +242,11 @@ GimpItemFactoryEntry gradient_editor_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Blend Endpoints' Colors"), "B",
{ { N_("/Ble_nd Endpoints' Colors"), "B",
gradient_editor_blend_color_cmd_callback, 0 },
NULL,
NULL, NULL },
{ { N_("/Blend Endpoints' Opacity"), "<control>B",
{ { N_("/Blend Endpoints' Opacit_y"), "<control>B",
gradient_editor_blend_opacity_cmd_callback, 0 },
NULL,
NULL, NULL },
......@@ -387,29 +391,29 @@ gradient_editor_menu_update (GtkItemFactory *factory,
if (! selection)
{
SET_LABEL ("/blendingfunction", _("Blending Function for Segment"));
SET_LABEL ("/coloringtype", _("Coloring Type for Segment"));
SET_LABEL ("/flip", _("Flip Segment"));
SET_LABEL ("/replicate", _("Replicate Segment..."));
SET_LABEL ("/splitmidpoint", _("Split Segment at Midpoint"));
SET_LABEL ("/splituniformly", _("Split Segment Uniformly..."));
SET_LABEL ("/delete", _("Delete Segment"));
SET_LABEL ("/recenter", _("Re-center Segment's Midpoint"));
SET_LABEL ("/redistribute", _("Re-distribute Handles in Segment"));
SET_LABEL ("/blendingfunction", _("_Blending Function for Segment"));
SET_LABEL ("/coloringtype", _("Coloring _Type for Segment"));
SET_LABEL ("/flip", _("_Flip Segment"));
SET_LABEL ("/replicate", _("_Replicate Segment..."));
SET_LABEL ("/splitmidpoint", _("Split Segment at _Midpoint"));
SET_LABEL ("/splituniformly", _("Split Segment _Uniformly..."));
SET_LABEL ("/delete", _("_Delete Segment"));
SET_LABEL ("/recenter", _("Re-_center Segment's Midpoint"));
SET_LABEL ("/redistribute", _("Re-distribute _Handles in Segment"));
}
else
{
SET_LABEL ("/blendingfunction", _("Blending Function for Selection"));
SET_LABEL ("/coloringtype", _("Coloring Type for Selection"));
SET_LABEL ("/flip", _("Flip Selection"));
SET_LABEL ("/replicate", _("Replicate Selection..."));
SET_LABEL ("/splitmidpoint", _("Split Segments at Midpoints"));
SET_LABEL ("/splituniformly", _("Split Segments Uniformly..."));
SET_LABEL ("/delete", _("Delete Selection"));
SET_LABEL ("/recenter", _("Re-center Midpoints in Selection"));
SET_LABEL ("/redistribute", _("Re-distribute Handles in Selection"));
SET_LABEL ("/blendingfunction", _("_Blending Function for Selection"));
SET_LABEL ("/coloringtype", _("Coloring _Type for Selection"));
SET_LABEL ("/flip", _("_Flip Selection"));
SET_LABEL ("/replicate", _("_Replicate Selection..."));
SET_LABEL ("/splitmidpoint", _("Split Segments at _Midpoints"));
SET_LABEL ("/splituniformly", _("Split Segments _Uniformly..."));
SET_LABEL ("/delete", _("_Delete Selection"));
SET_LABEL ("/recenter", _("Re-_center Midpoints in Selection"));
SET_LABEL ("/redistribute", _("Re-distribute _Handles in Selection"));
}
SET_SENSITIVE ("/blendingfunction/(Varies)", FALSE);
......
......@@ -42,22 +42,22 @@
GimpItemFactoryEntry gradients_menu_entries[] =
{
{ { N_("/New Gradient"), NULL,
{ { N_("/_New Gradient"), NULL,
data_new_data_cmd_callback, 0,
"<StockItem>", GTK_STOCK_NEW },
NULL,
NULL, NULL },
{ { N_("/Duplicate Gradient"), NULL,
{ { N_("/D_uplicate Gradient"), NULL,
data_duplicate_data_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_DUPLICATE },
NULL,
NULL, NULL },
{ { N_("/Edit Gradient..."), NULL,
{ { N_("/_Edit Gradient..."), NULL,
data_edit_data_cmd_callback, 0,
"<StockItem>", GIMP_STOCK_EDIT },
NULL,
NULL, NULL },
{ { N_("/Delete Gradient..."), NULL,
{ { N_("/_Delete Gradient..."), NULL,
data_delete_data_cmd_callback, 0,
"<StockItem>", GTK_STOCK_DELETE },
NULL,
......@@ -65,7 +65,7 @@ GimpItemFactoryEntry gradients_menu_entries[] =
MENU_SEPARATOR ("/---"),
{ { N_("/Refresh Gradients"), NULL,
{