summaryrefslogtreecommitdiffstats
path: root/tools/wixl/msi-default.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wixl/msi-default.vala')
-rw-r--r--tools/wixl/msi-default.vala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/wixl/msi-default.vala b/tools/wixl/msi-default.vala
index 77f955d..e800b72 100644
--- a/tools/wixl/msi-default.vala
+++ b/tools/wixl/msi-default.vala
@@ -168,6 +168,17 @@ namespace Wixl {
public static ActionInfo get_action (Action action) {
return actions[action];
}
+
+ public static ActionInfo? get_action_by_name (string name) {
+ ActionInfo? action = null;
+
+ try {
+ action = actions[enum_from_string (typeof (Action), name.down ())];
+ } catch (GLib.Error error) {
+ }
+
+ return action;
+ }
}
} // Wixl \ No newline at end of file