[gnome-boxes/wip/image-import: 1/9] InstallerMedia now creates VMCreator instance
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/image-import: 1/9] InstallerMedia now creates VMCreator instance
- Date: Wed, 5 Jun 2013 01:37:46 +0000 (UTC)
commit 8c76661c533bbb54034505294a74047525e99b0f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Jun 5 03:57:47 2013 +0300
InstallerMedia now creates VMCreator instance
src/installer-media.vala | 4 ++++
src/wizard.vala | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 7b567ab..e8e6929 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -106,6 +106,10 @@ private class Boxes.InstallerMedia : GLib.Object {
return compatibility != CPUArchCompatibility.INCOMPATIBLE;
}
+ public virtual VMCreator get_vm_creator () {
+ return new VMCreator (this);
+ }
+
protected void add_cd_config (Domain domain,
DomainDiskType type,
string iso_path,
diff --git a/src/wizard.vala b/src/wizard.vala
index 67f3669..1b7a02a 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -302,7 +302,7 @@ private class Boxes.Wizard: Boxes.UI {
yield install_media.prepare (progress, null);
- vm_creator = new VMCreator (install_media);
+ vm_creator = install_media.get_vm_creator ();
prep_progress.fraction = 1.0;
page = WizardPage.SETUP;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]