[gnome-initial-setup] assistant: Grab focus to the forward button on page change



commit fc122863eba0a090836ba21a99c75445696cf025
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 7 11:08:04 2014 -0400

    assistant: Grab focus to the forward button on page change
    
    This arranges things so that hitting Enter will move to the
    next page in most cases. We grab the focus before emitting
    the GisPage::shown signal, so pages can override this and
    put the focus in a better place.

 gnome-initial-setup/gis-assistant.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gis-assistant.c b/gnome-initial-setup/gis-assistant.c
index aeb6bb3..365e426 100644
--- a/gnome-initial-setup/gis-assistant.c
+++ b/gnome-initial-setup/gis-assistant.c
@@ -352,6 +352,8 @@ update_current_page (GisAssistant *assistant,
   update_applying_state (assistant);
   update_navigation_buttons (assistant);
 
+  gtk_widget_grab_focus (priv->forward);
+
   if (page)
     gis_page_shown (page);
 }


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