[Gtk-sharp-list] gapi not including correct function signature?

Alex Launi alex.launi at gmail.com
Sun Aug 15 11:03:29 EDT 2010


I'm trying to bind GKeyFile, but g_key_file_set_list_seperator (gchar
seperator) doesn't appear to be binding correctly, even though the api file
looks right.

The C function looks like this:  void g_key_file_set_list_separator
(GKeyFile *key_file, gchar separator);

Which gets parsed into the raw api file like this...

<method name="SetListSeparator" cname="g_key_file_set_list_separator">
        <return-type type="void" />
        <parameters>
                <parameter type="gchar" name="separator" />
        </parameters>
</method>

but the generated code looks like this. Shouldn't the IntPtr separator param
be a char type?

[DllImport("libglib-2.0.dll")]
static extern void g_key_file_set_list_separator(IntPtr raw, IntPtr
separator);

public string ListSeparator {
        set {
                 g_key_file_set_list_separator(Handle,
GLib.Marshaller.StringToPtrGStrdup(value));
        }
}

Should I just write the method myself in the .custom file, or is there a
fixup I can do for this? It looks like it should be fine.


-- 
-- Alex Launi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20100815/1406124e/attachment.html 


More information about the Gtk-sharp-list mailing list