diff options
author | Murray Cumming <murrayc@murrayc.com> | 2004-10-14 18:25:32 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2004-10-14 18:25:32 +0000 |
commit | 4ef60771fa910b9d98f47bbb20c3b0bce4c228a1 (patch) | |
tree | 7035d5b7d7c72d29a6aac083123ecf9240ed9bbc | |
parent | 0db37d9998f1fb5361c21d1fb0ddcd15ba824778 (diff) | |
download | glibmm-4ef60771fa910b9d98f47bbb20c3b0bce4c228a1.tar.gz |
on_wrap_property(): Convert property name to canonical form, so that we
2004-10-14 Murray Cumming <murrayc@murrayc.com>
* tools/pm/WrapParser.pm: on_wrap_property(): Convert property name to
canonical form, so that we can recognise notifications of property
value changes. Bug #152764.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tools/pm/WrapParser.pm | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2004-10-14 Murray Cumming <murrayc@murrayc.com> + + * tools/pm/WrapParser.pm: on_wrap_property(): Convert property name to + canonical form, so that we can recognise notifications of property + value changes. Bug #152764. + 2004-09-26 Murray Cumming <murrayc@murrayc.com> * examples/thread/dispatcher.cc: Made a destructor virtual, to avoid 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); |