[gnome-boxes] Some wizard steps needs to be reset backward
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Some wizard steps needs to be reset backward
- Date: Thu, 3 Nov 2011 18:27:34 +0000 (UTC)
commit 3546937f1c45908a4da10c323253c6c19465d1d4
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Nov 3 19:27:10 2011 +0100
Some wizard steps needs to be reset backward
src/wizard.vala | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 03c5faa..def2186 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -37,17 +37,19 @@ private class Boxes.Wizard: Boxes.UI {
set {
var forwards = value > page;
- if (forwards) {
- switch (value) {
- case WizardPage.INTRODUCTION:
- next_button.sensitive = true;
- break;
+ switch (value) {
+ case WizardPage.INTRODUCTION:
+ next_button.sensitive = true;
+ break;
- case WizardPage.SOURCE:
- // reset page to notify deeply widgets states
- wizard_source.page = wizard_source.page;
- break;
+ case WizardPage.SOURCE:
+ // reset page to notify deeply widgets states
+ wizard_source.page = wizard_source.page;
+ break;
+ }
+ if (forwards) {
+ switch (value) {
case WizardPage.PREPARATION:
try {
prepare ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]