[Gtk-sharp-list] gapi2-codegen and references

Mike Kestner mkestner at novell.com
Wed Dec 6 11:31:10 EST 2006

On Tue, 2006-12-05 at 01:21 +0100, Bart Deleye wrote:
> Hi all,
> I'm trying to generate .net bindings using gapi2-codegen, but I get the
> message 'Name: func Type: GFunc in....'.
> It seems that I'm missing the reference to glib.
> I've tried running gapi2-codegen with option 'I:/usr/include/glib-2.0
> -I:/usr/lib/glib-2.0/include', but then i get an
> UnAuthorizedAccessException, even as root. How can I fix this?

GFunc isn't exposed by GLib#.  It's unclear how any generic
implementation could be provided for a void GFunc (gpointer data,
gpointer user_data) method.  The gtk+ docs imply it's only used by glist
and gslist foreach.

You probably are better off providing a custom implementation for the
method which uses that parameter, I would guess.  Maybe if you provided
more details about the specific method we could make some suggestions.
If it's a foreach scenario, for example, you may be better off providing
an enumerator implementation.

Mike Kestner  <mkestner at novell.com>
SUSE® Linux Enterprise 10
Your Linux is ready™

More information about the Gtk-sharp-list mailing list