[gnome-boxes] vm-configurator: Refactor set_tablet_config()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-configurator: Refactor set_tablet_config()
- Date: Sat, 11 Oct 2014 17:39:33 +0000 (UTC)
commit f9024d6de1b5722110ac6d2eef636a84d649a86c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 29 16:31:03 2014 +0100
vm-configurator: Refactor set_tablet_config()
Seperate out most of it into a more generic, set_input_config(), which
we will use to setup other input devices in the following patch.
https://bugzilla.gnome.org/show_bug.cgi?id=735768
src/vm-configurator.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 44d6db3..6a5ba35 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -335,8 +335,12 @@ private class Boxes.VMConfigurator {
}
private static void set_tablet_config (Domain domain, InstallerMedia install_media) {
+ set_input_config (domain, DomainInputDeviceType.TABLET);
+ }
+
+ private static void set_input_config (Domain domain, DomainInputDeviceType device_type) {
var input = new DomainInput ();
- input.set_device_type (DomainInputDeviceType.TABLET);
+ input.set_device_type (device_type);
domain.add_device (input);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]