Gtk4 Snapshot virtual method/function and child/parent

Wanted to clarify something - if I want both parent and child widget do snapshot, parent do_snapshot actually has to call children do_snapshot explicitly, as bucket stops at parent so to speak. Am I right? If I do_snapshot override for parent widget, children’s one doesn’t get called.

Self reply: you have to chain them, in Python you have to call Gtk.Widget.do_snapshot(self, snapshot) within your do_snapshot method for parent widget.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.