replace direct struct access with accessor functions

replace direct struct access with accessor functions in order to make it build with GSEAL_ENABLE. This is a requirement for future GTK3 support.