show the keyboard shortcut in brackets, as we do in other places.

2007-09-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_widget_accel_changed):
	show the keyboard shortcut in brackets, as we do in other places.

svn path=/trunk/; revision=23649
This commit is contained in:
Sven Neumann 2007-09-25 11:12:56 +00:00 committed by Sven Neumann
parent 0bd67f281f
commit 501231ddd9
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2007-09-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimpwidgets-utils.c (gimp_widget_accel_changed):
show the keyboard shortcut in brackets, as we do in other places.
2007-09-25 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/scripts/fuzzyborder.scm: Applied patch from

View File

@ -1058,12 +1058,11 @@ gimp_widget_accel_changed (GtkAccelGroup *accel_group,
accel_key->accel_key &&
accel_key->accel_flags & GTK_ACCEL_VISIBLE)
{
gchar *tmp = gimp_get_accel_string (accel_key->accel_key,
accel_key->accel_mods);
gchar *accel = gimp_get_accel_string (accel_key->accel_key,
accel_key->accel_mods);
tooltip = g_strconcat (orig_tooltip, " ", tmp, NULL);
g_free (tmp);
tooltip = g_strdup_printf ("%s (%s)", orig_tooltip, accel);
g_free (accel);
}
else
{