summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-10 16:04:35 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-10 16:04:51 +0100
commit6b2f22223696a68ca44ed77e3d140ece4a390d07 (patch)
tree9ed935c5c76bd73e70464b344d27420ebc953f36 /tools
parent000095467ee87f0fec4b02fec2e5552e2f63a4a1 (diff)
downloadmsitools-6b2f22223696a68ca44ed77e3d140ece4a390d07.tar.gz
msitools-6b2f22223696a68ca44ed77e3d140ece4a390d07.tar.xz
msitools-6b2f22223696a68ca44ed77e3d140ece4a390d07.zip
wixl: move get_attribute_content() to wix.vala
Diffstat (limited to 'tools')
-rw-r--r--tools/wixl/util.vala7
-rw-r--r--tools/wixl/wix.vala7
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala
index 11f1588..fd11678 100644
--- a/tools/wixl/util.vala
+++ b/tools/wixl/util.vala
@@ -58,13 +58,6 @@ namespace Wixl {
return (t + 134774ULL * 86400ULL) * 10000000ULL;
}
- string get_attribute_content (Xml.Attr *attr) {
- if (attr->children == null)
- return "";
-
- return attr->children->content;
- }
-
public string indent (string space, string text) {
var indented = "";
diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala
index b31c29b..b3531d8 100644
--- a/tools/wixl/wix.vala
+++ b/tools/wixl/wix.vala
@@ -135,6 +135,13 @@ namespace Wixl {
return null;
}
+ string get_attribute_content (Xml.Attr *attr) {
+ if (attr->children == null)
+ return "";
+
+ return attr->children->content;
+ }
+
protected void load_properties_from_node (Xml.Node *node) throws Wixl.Error {
for (var prop = node->properties; prop != null; prop = prop->next) {
if (prop->type == Xml.ElementType.ATTRIBUTE_NODE)