Fix Container.ForAll

A SIGSEGV occurs without this change  (Invalid pointer: 0x00 fix)
This commit is contained in:
Dadoum 2020-05-18 19:48:11 +02:00 committed by GitHub
parent e2c2ab1cf5
commit f8568ff821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ namespace Gtk
$"{nameof(ForAll)} can only be called as \"base.{nameof(ForAll)}()\". Use {nameof(Forall)}() or {nameof(Foreach)}()."); $"{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) static ForAllNativeDelegate InternalForAllNativeDelegate(GLib.GType gtype)
@ -153,4 +153,4 @@ namespace Gtk
} }
} }
} }
} }