Commit 98cfc097 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

improve class and signal parsing, patch by Marcelo Lira, fixes bug 464388

2007-08-07  Juerg Billeter  <j@bitron.ch>

	* vapigen/gidlgen/gapi2xml.pl: improve class and signal parsing,
	  patch by Marcelo Lira, fixes bug 464388

svn path=/trunk/; revision=439
parent a343f08f
2007-08-07 Jürg Billeter <j@bitron.ch>
* vapigen/gidlgen/gapi2xml.pl: improve class and signal parsing,
patch by Marcelo Lira, fixes bug 464388
2007-08-07 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: fix the C name of Process.close_pid
......
......@@ -327,6 +327,9 @@ foreach $type (sort(keys(%ifaces))) {
foreach $type (sort(keys(%objects))) {
($inst, $class) = split(/:/, $objects{$type});
$class = $inst . "Class" if (!$class);
next if ($inst eq "");
$initfunc = $pedefs{lc($inst)};
$typefunc = $typefuncs{lc($inst)};
$insttype = delete $types{$inst};
......@@ -975,7 +978,7 @@ sub addSignalElem
$sig_elem = $doc->createElement('signal');
$node->appendChild($sig_elem);
if ($spec =~ /\(\"([\w\-]+)\"/) {
if ($spec =~ /[\s]*\([\s]*\"([\w\-]+)\"/) {
my $cname = $1;
$cname =~ s/-/_/g;
$sig_elem->setAttribute('name', $cname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment