While this is certainly possible, I would instead use the real toolkit of an OpenGL widget such as Clutter. If you want to display GTK + with OpenGL, I would start by creating a new GDK backend (X11 / OpenGL or something similar) that (re) implements all the GDK drawing functions using OpenGL. A good side effect would be that all GTK + windows would allow for normal OpenGL rendering, i.e. No longer needed for the GtkGLWidget class.
source share