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
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list