public void ForeachKey(string section, bool include_localized, Gnome.ThemeFileLineFunc func) { IntPtr native_section = GLib.Marshaller.StringToPtrGStrdup(section); GnomeSharp.ThemeFileLineFuncWrapper func_wrapper = new GnomeSharp.ThemeFileLineFuncWrapper(func); gnome_theme_file_foreach_key(Handle, native_section, include_localized, func_wrapper.NativeDelegate, IntPtr.Zero); GLib.Marshaller.Free(native_section); }
public ThemeFileLineFuncWrapper(Gnome.ThemeFileLineFunc managed) { this.managed = managed; if (managed != null) { NativeDelegate = new ThemeFileLineFuncNative(NativeCallback); } }