I’ve scoured google but came up with nothing.
I’ve done the following:
id = signal_connect(alig, “check-resize”) do widget, event
println(“The window was resized”)
end
where ‘alig’ is a GtkAlignment to which I add a Canvas at run-time.
Can’t find “check-resize” anywhere in the docs. “size-allocate” is the event I’m after
If you want register a callback for the size-allocate
event, then pass "size-allocate"
as the third argument of signal_connect
. This works for me:
signal_connect(window, "size-allocate") do widget, event
println("The window was resized")
end