summaryrefslogtreecommitdiff
path: root/gtk/gtkprinteroptionwidget.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-08-31 22:44:45 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-08-31 22:50:28 -0400
commit97ee5efb4bb98b272eebd5b3f5569f13016cba11 (patch)
tree2e1c2e40060f6facd7432818ad7f283bf2f9a08d /gtk/gtkprinteroptionwidget.c
parent4c67e71c63aca1770a6a486c30653f831a0191bd (diff)
downloadgtk+-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.c15
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)
{