[gtk+] Improve focus handling in the print dialog



commit 45ac4f252315da812125f450e9004decfed21e92
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 7 23:51:52 2009 -0400

    Improve focus handling in the print dialog
    
    Move the focus to the range entry when selecting the "Pages".
---
 gtk/gtkprintunixdialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 21c1efe..e88852e 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]