resize_widget function with callback parameter

Is it possible to add a callback to the resize_widget function, that is
called when the resizing of a widget is finished? This may help to
update the widget content properly.
Merge pull request #169 from tuvokki/master

Fix for Issue #158