struct padding member regex fix

* gtk/gtk-api.raw: reparse
* parser/gapi2xml.pl: match padding_n for padding members too to catch
   GtkSwitch padding vm slots.
This commit is contained in:
Mike Kestner 2011-04-20 17:32:55 -05:00
parent 256a80399c
commit 567e3c81e0
2 changed files with 8 additions and 8 deletions

View file

@ -18397,25 +18397,25 @@
</class_struct>
<field name="Priv" cname="priv" type="GtkSwitchPrivate*" />
<property name="" cname="" type="class" />
<virtual_method name="SwitchPadding1" cname="_switch_padding_1" shared="true">
<virtual_method name="SwitchPadding1" cname="_switch_padding_1" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding2" cname="_switch_padding_2" shared="true">
<virtual_method name="SwitchPadding2" cname="_switch_padding_2" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding3" cname="_switch_padding_3" shared="true">
<virtual_method name="SwitchPadding3" cname="_switch_padding_3" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding4" cname="_switch_padding_4" shared="true">
<virtual_method name="SwitchPadding4" cname="_switch_padding_4" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding5" cname="_switch_padding_5" shared="true">
<virtual_method name="SwitchPadding5" cname="_switch_padding_5" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding6" cname="_switch_padding_6" shared="true">
<virtual_method name="SwitchPadding6" cname="_switch_padding_6" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<virtual_method name="SwitchPadding7" cname="_switch_padding_7" shared="true">
<virtual_method name="SwitchPadding7" cname="_switch_padding_7" shared="true" padding="true">
<return-type type="void" />
</virtual_method>
<implements>

View file

@ -570,7 +570,7 @@ sub addClassElem
$vm_elem->setAttribute('shared', 'true');
}
if ($cname =~ /reserved[0-9]+$/ || $cname =~ /padding[0-9]+$/ || $cname =~ /recent[0-9]+$/) {
if ($cname =~ /reserved_?[0-9]+$/ || $cname =~ /padding_?[0-9]+$/ || $cname =~ /recent_?[0-9]+$/) {
$vm_elem->setAttribute('padding', 'true');
}
}