[Mono-dev] Adding signal support to gapi genrated binding

Fabian Sturm f at rtfs.org
Sat Jan 5 14:03:29 EST 2008


Hi! 

I finally managed to get the signals working, I still have to test
if all work fine, but the ones I tested work.

I don't really know what I changed or if I misread my first tests.
Anyways the manual adding in the metadata file worked. 

One unsolved thing is that I now get a warning for every signal I added.
Can this be ignored or is this the norm?

mcs -pkg:gtk-sharp-2.0 -target:library -out:generated/abiword-sharp.dll
generated/*.cs
generated/AbiWidget.cs(222,37): warning CS0169: The private method
`Abiword.AbiWidget.OverrideTableState(GLib.GType)' is never used
generated/AbiWidget.cs(291,37): warning CS0169: The private method
`Abiword.AbiWidget.OverrideJustifyAlign(GLib.GType)' is never used

Thanks, Fabian



Am Samstag, den 05.01.2008, 01:14 +0100 schrieb Fabian Sturm:
> Hi!
> 
> As I announced earlier I did a C# binding for the abiwidget in
> libabiword. It is already usable but it is missing signal support.
> 
> One reason was that the .cpp file was not picked up during the gapi
> parse step. After renaming it to .c it is now parsed and a lot more is
> exported into the binding.
> 
> But still I don't get the signals I want. I also tried to create a
> custom metadata file to add them by hand, but failed.
> Now I get an event handler to which I can add a method but it is never
> called.
> 
> I would really appreciate to get hints to how I could make this work.
> 
> Attached is the resulting .raw file and the metadata file.
> My current binding attempt is available here:
> 
> hg clone http://www.rtfs.org/hg/abiword-sharp/
> 
> Thanks a lot, Fabian
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list