porting gtk2 functions to gtk3 [solved]