[gnome-boxes] Slightly better names for some local variables
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Slightly better names for some local variables
- Date: Wed, 26 Oct 2011 23:43:23 +0000 (UTC)
commit 7c69233242c63b7a60760a902756d5050515cabb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Oct 27 02:42:37 2011 +0300
Slightly better names for some local variables
src/libvirt-machine.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 8135b49..0f92112 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -72,14 +72,14 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
}
private void update_display () {
- string type, gport, socket, ghost;
+ string type, port, socket, host;
try {
var xmldoc = domain.get_config (0).doc;
type = extract_xpath (xmldoc, "string(/domain/devices/graphics/@type)", true);
- gport = extract_xpath (xmldoc, @"string(/domain/devices/graphics[ type='$type']/@port)");
+ port = extract_xpath (xmldoc, @"string(/domain/devices/graphics[ type='$type']/@port)");
socket = extract_xpath (xmldoc, @"string(/domain/devices/graphics[ type='$type']/@socket)");
- ghost = extract_xpath (xmldoc, @"string(/domain/devices/graphics[ type='$type']/@listen)");
+ host = extract_xpath (xmldoc, @"string(/domain/devices/graphics[ type='$type']/@listen)");
} catch (GLib.Error error) {
warning (error.message);
return;
@@ -90,11 +90,11 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
switch (type) {
case "spice":
- display = new SpiceDisplay (ghost, int.parse (gport));
+ display = new SpiceDisplay (host, int.parse (port));
break;
case "vnc":
- display = new VncDisplay (ghost, int.parse (gport));
+ display = new VncDisplay (host, int.parse (port));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]