[gnome-boxes] wizard: Focus sensitive Continue/Create buttons
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard: Focus sensitive Continue/Create buttons
- Date: Mon, 15 Apr 2013 17:37:39 +0000 (UTC)
commit be58c071894b46090f51c1ccbaaff1892d16375a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Apr 11 02:31:50 2013 +0300
wizard: Focus sensitive Continue/Create buttons
Continue/Create button should have the focus when they are sensitive.
Them being sensitive means that everything is ready for us to proceed to
next step and so we should make it very easy for user to quickly move to
next step. In most cases, this will enable users to create VMs very
quickly IMO.
https://bugzilla.gnome.org/show_bug.cgi?id=664218
src/wizard.vala | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 955bbf9..d664ed4 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -665,6 +665,9 @@ private class Boxes.Wizard: Boxes.UI {
continue_button = toolbar.add_button (null, _("C_ontinue"), false) as Gtk.Button;
continue_button.use_underline = true;
continue_button.get_style_context ().add_class ("boxes-continue");
+ continue_button.bind_property ("sensitive",
+ continue_button, "has-focus",
+ BindingFlags.SYNC_CREATE);
continue_button.clicked.connect (() => {
page = page + 1;
});
@@ -673,6 +676,9 @@ private class Boxes.Wizard: Boxes.UI {
create_button = toolbar.add_button (null, _("C_reate"), false) as Gtk.Button;
create_button.use_underline = true;
create_button.get_style_context ().add_class ("boxes-continue");
+ create_button.bind_property ("sensitive",
+ create_button, "has-focus",
+ BindingFlags.SYNC_CREATE);
create_button.clicked.connect (() => {
page = page + 1;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]