summaryrefslogtreecommitdiffstats
path: root/tools/wixl/util.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wixl/util.vala')
-rw-r--r--tools/wixl/util.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala
index 13269c7..1b201ec 100644
--- a/tools/wixl/util.vala
+++ b/tools/wixl/util.vala
@@ -23,8 +23,8 @@ namespace Wixl {
return (string) udn;
}
- public int enum_from_string (Type t, string str) throws GLib.Error {
- var k = (EnumClass)t.class_ref ();
+ public G enum_from_string<G> (string str) throws GLib.Error {
+ var k = (EnumClass)typeof(G).class_ref ();
var v = k.get_value_by_nick (str);
if (v == null)