Is it a good idea to animate by calling size_allocate?

2023-06-02_22-35-00

There are many warning messages while flashing: 'Gtk-WARNING **: 22:35:16.987: Trying to snapshot 0x555555a1f080 without a current allocation'

I haven’t tried using snapshot to animate yet. I think that should fix the problem. Just make sure there is no problem within 300ms.


Explanation: The effect in the figure is achieved by negative y.
The parent control is a horizontal box below.

I also implemented a collapsible list through size_allocate.
Adjacent controls respond to size changes. Although the adjacent controls haven’t been written yet. But how flickering still happens, that would be bad.

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