void InvokeNative(Gnome.ThemeFile df, string name) { IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name); native_cb(df == null ? IntPtr.Zero : df.Handle, native_name, __data); GLib.Marshaller.Free(native_name); }
void InvokeNative(Gnome.ThemeFile df, string key, string locale, string value) { IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup(key); IntPtr native_locale = GLib.Marshaller.StringToPtrGStrdup(locale); IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup(value); native_cb(df == null ? IntPtr.Zero : df.Handle, native_key, native_locale, native_value, __data); GLib.Marshaller.Free(native_key); GLib.Marshaller.Free(native_locale); GLib.Marshaller.Free(native_value); }