Make stock buttons have mnemonics again
We used to treat stock buttons as having an implicit use-underline. A recent but fix lost that.
This commit is contained in:
@ -997,7 +997,7 @@ gtk_button_construct_child (GtkButton *button)
|
||||
|
||||
if (label_text)
|
||||
{
|
||||
if (button->use_underline)
|
||||
if (button->use_underline || button->use_stock)
|
||||
{
|
||||
label = gtk_label_new_with_mnemonic (label_text);
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label),
|
||||
@ -1022,7 +1022,7 @@ gtk_button_construct_child (GtkButton *button)
|
||||
return;
|
||||
}
|
||||
|
||||
if (button->use_underline)
|
||||
if (button->use_underline || button->use_stock)
|
||||
{
|
||||
label = gtk_label_new_with_mnemonic (button->label_text);
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), GTK_WIDGET (button));
|
||||
|
Reference in New Issue
Block a user