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:
@ -826,11 +826,16 @@ construct_widgets (GtkPrinterOptionWidget *widget)
|
|||||||
gtk_widget_show (priv->box);
|
gtk_widget_show (priv->box);
|
||||||
gtk_box_pack_start (GTK_BOX (widget), priv->box, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (widget), priv->box, TRUE, TRUE, 0);
|
||||||
for (i = 0; i < source->num_choices; i++)
|
for (i = 0; i < source->num_choices; i++)
|
||||||
group = alternative_append (priv->box,
|
{
|
||||||
source->choices_display[i],
|
group = alternative_append (priv->box,
|
||||||
source->choices[i],
|
source->choices_display[i],
|
||||||
widget,
|
source->choices[i],
|
||||||
group);
|
widget,
|
||||||
|
group);
|
||||||
|
/* for mnemonic activation */
|
||||||
|
if (i == 0)
|
||||||
|
priv->button = group->data;
|
||||||
|
}
|
||||||
|
|
||||||
if (source->display_text)
|
if (source->display_text)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user