Also strip (_F) without a space

This commit is contained in:
Matthias Clasen 2005-12-26 07:54:32 +00:00
parent b29a1d0f7e
commit 1460b38700
3 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
* README.in: Mention the stripping of (_F) suffixes.
* gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of
the form " (_<single character>)", since this is the preferred way
the form "(_<single character>)", since this is the preferred way
for some languages to indicate accelerators. (#323956, Yang Hong)
* gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus

View File

@ -3,7 +3,7 @@
* README.in: Mention the stripping of (_F) suffixes.
* gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Strip a suffix of
the form " (_<single character>)", since this is the preferred way
the form "(_<single character>)", since this is the preferred way
for some languages to indicate accelerators. (#323956, Yang Hong)
* gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus

View File

@ -4900,11 +4900,10 @@ _gtk_toolbar_elide_underscores (const gchar *original)
if (s > 4)
{
if (original[s - 5] == ' ' &&
original[s - 4] == '(' &&
if (original[s - 4] == '(' &&
original[s - 3] == '_' &&
original[s - 1] == ')')
q[-4] = '\0';
q[-3] = '\0';
}