On Tue, 11 Jun 2019 19:54:48 +0200, Mike Wey wrote:

On 11-06-2019 09:50, Alex X wrote:

APaned.addOnSizeAllocate((Allocation, Widget)

  {
	int x = 3;
	return;
  });

It is constantly being called even if the widget does not change. I.e., a BP will constantly be hit without ever changing anything.

I would expect this to only be called on a resize?

In the small test i wrote it does seem to be called only when things are
resized.

Ok, I refactored my code and maybe something was being called... I don't actually use the handler in the new code as I was just trying out ways to achieve what I wanted.

Thanks.