Fix mnemonic activation for some printer option widgets

The file type radio group has a mnemonic on its label, but
activating it did not work, since GtkPrinterOptionWidget did
not know to forward the activation to one of the buttons.
This commit is contained in:
Matthias Clasen 2012-08-31 22:44:45 -04:00
parent 4c67e71c63
commit 97ee5efb4b

View File

@ -826,11 +826,16 @@ construct_widgets (GtkPrinterOptionWidget *widget)
gtk_widget_show (priv->box);
gtk_box_pack_start (GTK_BOX (widget), priv->box, TRUE, TRUE, 0);
for (i = 0; i < source->num_choices; i++)
group = alternative_append (priv->box,
source->choices_display[i],
source->choices[i],
widget,
group);
{
group = alternative_append (priv->box,
source->choices_display[i],
source->choices[i],
widget,
group);
/* for mnemonic activation */
if (i == 0)
priv->button = group->data;
}
if (source->display_text)
{