mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
Also strip (_F) without a space
This commit is contained in:
parent
b29a1d0f7e
commit
1460b38700
@ -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
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user