[gnome-boxes] vm-configurator: Add is_boxes_installed
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Add is_boxes_installed
- Date: Mon, 15 Sep 2014 19:22:40 +0000 (UTC)
commit cefb5e0348df18e30ffd250de8b0e26cfb9b8c89
Author: Timm Bäder <mail baedert org>
Date: Fri Sep 12 17:21:12 2014 +0200
vm-configurator: Add is_boxes_installed
is_boxes_installed determines if the given domain is done installing.
https://bugzilla.gnome.org/show_bug.cgi?id=735685
src/vm-configurator.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index fe8429f..57ad212 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -136,6 +136,10 @@ private class Boxes.VMConfigurator {
return get_os_state (domain) == LIBVIRT_SYS_IMPORT_STATE;
}
+ public static bool is_boxes_installed (Domain domain) {
+ return get_os_state (domain) == INSTALLED_STATE;
+ }
+
public static StorageVol create_volume_config (string name, int64 storage) throws GLib.Error {
var volume = new StorageVol ();
volume.set_name (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]