I’m porting a project from gtk2 to gtk3. It’s a mixture of C++ and Python. The old code has a GUI written entirely with pygtk, except for libgnomecanvas, which is created and used in C++. In order to install the canvas into a pygtk window, the canvas was wrapped in a PyObject by pygobject_new(), and the PyObject* was returned to Python. Since libgnomecanvas doesn’t exist for gtk3, I’m calling cairo from C++, writing directly to a GtkLayout.
I’m having trouble figuring out the how to add the GtkLayout created in C++ to a window created in python. Is there a simple way to do this? Have I missed something in the docs? (I’ve checked the pygobject and gobject introspection manuals.)