diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-12-20 18:32:58 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-12-20 19:17:24 -0500 |
commit | 5a88e689f35f9424f92f294a9c0c4c3c36e6fc20 (patch) | |
tree | 450957c26fef074c527ef6a25426235dd00323ce /gtk/gtkprinteroptionwidget.c | |
parent | 72e41b41f506e0172bf12b4277918f11f06511a5 (diff) | |
download | gtk+-5a88e689f35f9424f92f294a9c0c4c3c36e6fc20.tar.gz |
Make mnemonic hiding work for printer option widgets
By making the widget itself insensitive.
Diffstat (limited to 'gtk/gtkprinteroptionwidget.c')
-rw-r--r-- | gtk/gtkprinteroptionwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index 468768fb33..3039412c49 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -687,12 +687,14 @@ construct_widgets (GtkPrinterOptionWidget *widget) deconstruct_widgets (widget); + gtk_widget_set_sensitive (widget, TRUE); + if (source == NULL) { priv->combo = combo_box_new (); combo_box_append (priv->combo,_("Not available"), "None"); gtk_combo_box_set_active (GTK_COMBO_BOX (priv->combo), 0); - gtk_widget_set_sensitive (priv->combo, FALSE); + gtk_widget_set_sensitive (widget, FALSE); gtk_widget_show (priv->combo); gtk_box_pack_start (GTK_BOX (widget), priv->combo, TRUE, TRUE, 0); } |