[gnome-boxes] properties: Add the snapshots page
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties: Add the snapshots page
- Date: Fri, 29 Aug 2014 16:15:16 +0000 (UTC)
commit 1e1030bb3a89b8b8e334f0923dda2b1dfe1486e2
Author: Timm Bäder <mail baedert org>
Date: Sat Aug 9 16:33:48 2014 +0200
properties: Add the snapshots page
The snapshot page lists all the snapshot available for the domain and
the user is able to delete, rename or revert to them.
https://bugzilla.gnome.org/show_bug.cgi?id=710306
src/libvirt-machine-properties.vala | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index e241676..2cfc648 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -275,6 +275,11 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
}
break;
+
+ case PropertiesPage.SNAPSHOTS:
+ add_snapshots_property (ref list, machine);
+
+ break;
}
return list;
@@ -634,4 +639,13 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
return yield machine.domain.create_snapshot_async (config, 0, null);
}
+ private Boxes.SnapshotsProperty add_snapshots_property (ref List<Boxes.Property> list,
+ LibvirtMachine machine) {
+ var property = new SnapshotsProperty (machine);
+ list.append (property);
+
+ return property;
+ }
+
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]