summaryrefslogtreecommitdiff
path: root/tools/pm/WrapParser.pm
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pm/WrapParser.pm')
-rw-r--r--tools/pm/WrapParser.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm
index 547db3f7..9c83a71b 100644
--- a/tools/pm/WrapParser.pm
+++ b/tools/pm/WrapParser.pm
@@ -1084,6 +1084,12 @@ sub on_wrap_property($)
my $argPropertyName = $args[0];
$argPropertyName = string_trim($argPropertyName);
$argPropertyName = string_unquote($argPropertyName);
+
+ #Convert the property name to a canonical form, as it is inside gobject.
+ #Otherwise, gobject might not recognise the name,
+ #and we will not recognise the property name when we get notification that the value changes.
+ $argPropertyName =~ s/_/-/g; #g means replace all.
+
my $argCppType = $args[1];
$argCppType = string_trim($argCppType);
$argCppType = string_unquote($argCppType);