What replaces the on_draw in GTK4

I have a GTK3 application which uses the on_draw to do some cairo stuff.
What is the equivalent of the on_draw in GTK4?

Hey,

if you’re using a GtkDrawingArea you can use its set_draw_func. If you use a GtkWidget you can override the snapshot Funktion.

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