summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index 9e73ca4687..5fe1daae91 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -334,7 +334,16 @@ public class Globals
334 public static byte class_initializer_call(IntPtr klass, System.Type type) 334 public static byte class_initializer_call(IntPtr klass, System.Type type)
335 { 335 {
336 Eina.Log.Debug($"called with 0x{klass.ToInt64():x} {type}"); 336 Eina.Log.Debug($"called with 0x{klass.ToInt64():x} {type}");
337 Efl.Eo.NativeClass nativeClass = GetNativeClass(type.BaseType); 337 var derived = type.BaseType;
338 Efl.Eo.NativeClass nativeClass = GetNativeClass(derived);
339
340 while (nativeClass == null)
341 {
342 derived = derived.BaseType;
343 if (derived == null)
344 break;
345 nativeClass = GetNativeClass(derived);
346 }
338 347
339 if (nativeClass != null) 348 if (nativeClass != null)
340 { 349 {