Custom drawing: 2D triangle with GtkSnapshot?

I switched to GTK 4 and now I’m trying to replace Cairo drawing with GtkSnapshot in a GtkDrawingArea. It works fine most of the time with gtk_snapshot_append_color(), except for one item, where I want to draw a 2D triangle. Do I have to stick with Cairo for the triangle and add it with gtk_snapshot_append_cairo() or is there some other way to do it? I wonder if all I can add in a solid color is a plain rectangle?

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