[gnome-boxes] Skip preparation page for remote display
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Skip preparation page for remote display
- Date: Thu, 3 Nov 2011 01:14:48 +0000 (UTC)
commit 1723e3804b17e93d41d397fd7c2df9d4940bf764
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Nov 3 02:10:52 2011 +0100
Skip preparation page for remote display
src/wizard.vala | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index 2f08443..868b1d2 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -199,6 +199,8 @@ private class Boxes.Wizard: Boxes.UI {
}
private void prepare () throws GLib.Error {
+ source = null;
+
if (this.wizard_source.page == Boxes.SourcePage.URL ||
this.wizard_source.page == Boxes.SourcePage.FILE)
prepare_for_location (this.wizard_source.uri);
@@ -247,11 +249,14 @@ private class Boxes.Wizard: Boxes.UI {
}
private bool skip_page (Boxes.WizardPage page) {
- if (page > Boxes.WizardPage.PREPARATION &&
+ // remote-display case
+ if (page > Boxes.WizardPage.SOURCE &&
page < Boxes.WizardPage.REVIEW &&
- this.wizard_source.page == Boxes.SourcePage.URL)
+ this.source != null)
return true;
+ // FIXME: other cases here
+
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]