improvement: finally, after three years of development i have found simple way how to constrain window size in gtk3! amazing!