[Gtk-sharp-list] .NET bindings for Tinymail, skeleton added to repository but I still have some compilation problems
Mike Kestner
mkestner at gmail.com
Mon Jan 28 18:18:22 EST 2008
On Jan 28, 2008 4:59 PM, Philip Van Hoof <spam at pvanhoof.be> wrote:
>
>
> ps. I'm trying things like this without success. Studying that fixup
> code :)
>
>
> <?xml version="1.0"?>
> <metadata>
> <remove-node
> path="/api/namespace/object[@cname='TnyList']/method[@cname='foreach']" />
> </metadata>
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.
> I'm guessing that if I want to add an 'implements', I do something like
> this to the metadata file:
>
> <add-node
> path="/api/namespace/object[@cname='TnyList']/implements/interface[@name='IList']"
> />
<add-node
path="/api/namespace/object[@cname='TnyList']"><implements><interface
name="IList" /></implements></add-node>
> And then make a List.custom that implements all that IList needs (which
> can be done with tny's list API).
Yep. You can take a look at Gtk.ListStore. It has an IEnumerable
implementation. I hacked up that metadata rule above from its rule.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080128/4a3eae70/attachment.html
More information about the Gtk-sharp-list
mailing list