static IntPtr GetPathForChild_cb(IntPtr inst, IntPtr child) { try { Container __obj = GLib.Object.GetObject(inst, false) as Container; Gtk.WidgetPath __result; __result = __obj.OnGetPathForChild(GLib.Object.GetObject(child) as Gtk.Widget); return(__result == null ? IntPtr.Zero : __result.Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }