]> Pileus Git - ~andy/gtk/commitdiff
Improve focus handling in the print dialog
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Apr 2009 03:51:52 +0000 (23:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Apr 2009 03:51:52 +0000 (23:51 -0400)
Move the focus to the range entry when selecting the "Pages".

gtk/gtkprintunixdialog.c

index 21c1efed69c4a3fc64492cb7d8e0f7edddafab70..e88852e4564494af81ab8fce2b8d28b13ecfd4e9 100644 (file)
@@ -1695,6 +1695,9 @@ update_range_sensitivity (GtkWidget *button,
   active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
 
   gtk_widget_set_sensitive (range, active);
+
+  if (active)
+    gtk_widget_grab_focus (range);
 }
 
 static void