diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-08-31 22:44:45 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-08-31 22:50:28 -0400 |
commit | 97ee5efb4bb98b272eebd5b3f5569f13016cba11 (patch) | |
tree | 2e1c2e40060f6facd7432818ad7f283bf2f9a08d /gtk/gtkprinteroptionwidget.c | |
parent | 4c67e71c63aca1770a6a486c30653f831a0191bd (diff) | |
download | gtk+-97ee5efb4bb98b272eebd5b3f5569f13016cba11.tar.gz |
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.
Diffstat (limited to 'gtk/gtkprinteroptionwidget.c')
-rw-r--r-- | gtk/gtkprinteroptionwidget.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index a62fd0c621..44c54adf7c 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -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) { |