summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2004-10-14 18:25:32 +0000
committerMurray Cumming <murrayc@src.gnome.org>2004-10-14 18:25:32 +0000
commit4ef60771fa910b9d98f47bbb20c3b0bce4c228a1 (patch)
tree7035d5b7d7c72d29a6aac083123ecf9240ed9bbc
parent0db37d9998f1fb5361c21d1fb0ddcd15ba824778 (diff)
downloadglibmm-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--ChangeLog6
-rw-r--r--tools/pm/WrapParser.pm6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bbafe180..16f51388 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);