On Jan 28, 2008 4:59 PM, Philip Van Hoof <[EMAIL PROTECTED]> wrote:

>
>
> ps. I'm trying things like this without success. Studying that fixup
> code :)
>
>
> <?xml version="1.0"?>
> <metadata>
>  <remove-node
> path="/api/namespace/[EMAIL PROTECTED]'TnyList']/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'TnyList']/implements/[EMAIL 
> PROTECTED]'IList']"
> />


<add-node
path="/api/namespace/[EMAIL PROTECTED]'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
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to