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
+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
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};
$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);