For small api changes like this, you can define an extension method that has different implementations for gtk2 and gtk3. This could be for example SetHasWindow(this Widget, bool value).