forked from AuroraMiddleware/gtk
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