diff --git a/Source/Libs/GtkSharp/Container.Forall.cs b/Source/Libs/GtkSharp/Container.Forall.cs index ba3fabe47..788a0dd5f 100644 --- a/Source/Libs/GtkSharp/Container.Forall.cs +++ b/Source/Libs/GtkSharp/Container.Forall.cs @@ -100,7 +100,7 @@ namespace Gtk $"{nameof(ForAll)} can only be called as \"base.{nameof(ForAll)}()\". Use {nameof(Forall)}() or {nameof(Foreach)}()."); } - gtksharp_container_base_forall(Handle, include_internals, callback, IntPtr.Zero); + gtksharp_container_base_forall(Handle, include_internals, callback, ((ForAllCallbackHandler) callback.Target).data); } static ForAllNativeDelegate InternalForAllNativeDelegate(GLib.GType gtype) @@ -153,4 +153,4 @@ namespace Gtk } } } -} \ No newline at end of file +}