GTK has at least two extensions that can help you: GtkGLExt and Gtksdl .
Gtksdl seems to be abandoned, but may contain some useful code. GtkGLExt works great if you don't rely on a lot of SDL functionality outside of the OpenGL core and event handling.
source share