added new function gimp_get_mod_string() which takes a GdkModifierType and
2004-06-29 Michael Natterer <mitch@gimp.org> * app/widgets/gimpwidgets-utils.[ch]: added new function gimp_get_mod_string() which takes a GdkModifierType and returns correctly formated strings for all shift,control,alt combinations. * app/tools/gimpbucketfilloptions.c * app/tools/gimpcolorpickeroptions.c * app/tools/gimpconvolvetool.c * app/tools/gimpcropoptions.c * app/tools/gimpdodgeburntool.c * app/tools/gimperasertool.c * app/tools/gimpflipoptions.c * app/tools/gimpmagnifyoptions.c * app/tools/gimpmoveoptions.c * app/tools/gimptransformoptions.c * app/tools/gimpvectoroptions.c * app/widgets/gimpchanneltreeview.c * app/widgets/gimpcolormapeditor.c * app/widgets/gimpdocumentview.c * app/widgets/gimperrorconsole.c * app/widgets/gimpgradienteditor.c * app/widgets/gimpitemtreeview.c * app/widgets/gimppaletteeditor.c * app/widgets/gimpselectioneditor.c * app/widgets/gimpthumbbox.c * app/widgets/gimptooloptionseditor.c * app/widgets/gimpvectorstreeview.c: use the new function instead of gimp_get_mod_name_shift(),control(),alt(),separator(). This kindof addresses the issue of configurable modifier keys but is actually indended to ease translation of format strings ("%s" is easier to get right than "%s%s%s").
This commit is contained in:
committed by
Michael Natterer
parent
6a5e68c9e2
commit
6cd5737257
@ -130,8 +130,8 @@ gimp_document_view_new (GimpViewType view_type,
|
||||
str = g_strdup_printf (_("Open the selected entry\n"
|
||||
"%s Raise window if already open\n"
|
||||
"%s Open image dialog"),
|
||||
gimp_get_mod_name_shift (),
|
||||
gimp_get_mod_name_control ());
|
||||
gimp_get_mod_string (GDK_SHIFT_MASK),
|
||||
gimp_get_mod_string (GDK_CONTROL_MASK));
|
||||
|
||||
document_view->open_button =
|
||||
gimp_editor_add_action_button (GIMP_EDITOR (editor->view), "documents",
|
||||
@ -159,8 +159,8 @@ gimp_document_view_new (GimpViewType view_type,
|
||||
str = g_strdup_printf (_("Recreate preview\n"
|
||||
"%s Reload all previews\n"
|
||||
"%s Remove Dangling Entries"),
|
||||
gimp_get_mod_name_shift (),
|
||||
gimp_get_mod_name_control ());
|
||||
gimp_get_mod_string (GDK_SHIFT_MASK),
|
||||
gimp_get_mod_string (GDK_CONTROL_MASK));
|
||||
|
||||
document_view->refresh_button =
|
||||
gimp_editor_add_action_button (GIMP_EDITOR (editor->view), "documents",
|
||||
|
||||
Reference in New Issue
Block a user