On Jan 28, 2008 4:59 PM, Philip Van Hoof <<a href="mailto:spam@pvanhoof.be">spam@pvanhoof.be</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br><br></div>ps. I'm trying things like this without success. Studying that fixup<br>code :)<br><br><br><?xml version="1.0"?><br><metadata><br> <remove-node path="/api/namespace/object[@cname='TnyList']/method[@cname='foreach']" /><br>
</metadata></blockquote><div><br>That method cname would probably be something like tny_list_foreach, or you could do @name='Foreach'. The error is most likely due to a parameter named foreach, though, I'm guessing, which could be renamed to foreach_cb or something like that to get around the current lack of generator mangling. <br>
</div><div> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm guessing that if I want to add an 'implements', I do something like<br>
this to the metadata file:<br><br> <add-node path="/api/namespace/object[@cname='TnyList']/implements/interface[@name='IList']" /></blockquote><div><br><add-node path="/api/namespace/object[@cname='TnyList']"><implements><interface name="IList" /></implements></add-node> <br>
</div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">And then make a List.custom that implements all that IList needs (which<br>
can be done with tny's list API).</blockquote><div><br>Yep. You can take a look at Gtk.ListStore. It has an IEnumerable implementation. I hacked up that metadata rule above from its rule.<br><br>Mike</div></div>