Just a guess (never have used GTK): Have you tried this?


const Glib::RefPtr<const Gdk::Window> p = canvas_event_box.get_window();