[gnome-boxes] wizard: Focus Create button on last page
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard: Focus Create button on last page
- Date: Fri, 14 Mar 2014 13:52:08 +0000 (UTC)
commit fb4a786e74844ebf98742f72b967fc60fda57810
Author: Lasse Schuirmann <lasse schuirmann net>
Date: Wed Mar 12 06:44:20 2014 +0100
wizard: Focus Create button on last page
Since the wizard supports Alt + Left and Alt + Right for navigation,
it is consistent to focus the Create button on the last page to allow
a confirmation via enter.
https://bugzilla.gnome.org/show_bug.cgi?id=726154
src/wizard.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 316aeef..932cf3b 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -97,6 +97,7 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
review.begin ((obj, result) => {
next_button.sensitive = true;
+ create_button.grab_focus ();
if (!review.end (result))
page = page - 1;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]