diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-10-26 21:51:36 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-10-26 22:11:17 -0400 |
commit | 701c00e8cf79e88d3bc2e1a138ec1592d69ebc78 (patch) | |
tree | 3e824af489eadf011a57dec2ef16862fef93fb09 /gtk/gtkprintunixdialog.c | |
parent | aa3ddb2a34b4006ec9062fbba59c596c1e77ae7f (diff) | |
download | gtk+-701c00e8cf79e88d3bc2e1a138ec1592d69ebc78.tar.gz |
Print dialog: small keynav improvement
Mark the page range entry and the copies spin button as
activates-default.
https://bugzilla.gnome.org/show_bug.cgi?id=662670
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index ac34dbe47a..091109e441 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -2312,6 +2312,7 @@ create_main_page (GtkPrintUnixDialog *dialog) gtk_grid_attach (GTK_GRID (table), radio, 0, 3, 1, 1); entry = gtk_entry_new (); gtk_widget_set_tooltip_text (entry, range_tooltip); + gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE); atk_object_set_name (gtk_widget_get_accessible (entry), _("Pages")); atk_object_set_description (gtk_widget_get_accessible (entry), range_tooltip); priv->page_range_entry = entry; @@ -2334,6 +2335,7 @@ create_main_page (GtkPrintUnixDialog *dialog) gtk_widget_show (label); gtk_grid_attach (GTK_GRID (table), label, 0, 0, 1, 1); spinbutton = gtk_spin_button_new_with_range (1.0, 100.0, 1.0); + gtk_entry_set_activates_default (GTK_ENTRY (spinbutton), TRUE); priv->copies_spin = spinbutton; gtk_widget_show (spinbutton); gtk_grid_attach (GTK_GRID (table), spinbutton, 1, 0, 1, 1); |