I’m working on GTK3 application in CPP. I’m creating graphs in my applications. So I’m intercepting draw signal of GTKDrawingArea and drawing graphs with help of cairo APIs.
But Draw signal is called many time by the OS (during resize, z - index change, etc), which leads to redraw. But during redraw GTK is removing all the existing content and drawing again.
It it possible to tell the draw signal to not remove the existing content and not do anything? I tried returning TRUE but it did not work, it is removing all the contents.