[AdgGtkArea] Fluent scaling on size allocation
commit8c27d268cd1fa488bf5ea288fd1e9345a9e6b37a
authorNicola Fontana <ntd@entidi.it>
Sat, 1 May 2010 19:31:51 +0000 (1 21:31 +0200)
committerNicola Fontana <ntd@entidi.it>
Sat, 1 May 2010 19:31:51 +0000 (1 21:31 +0200)
treeeb61b13b3ac07428c0962cba3258ab2c8eb4ae8b
parentf97af9ba55fefc113bd523764c56701fbf06c206
[AdgGtkArea] Fluent scaling on size allocation

While the previous approach was recentering the canvas during a new
allocation, providing a somewhat "scattered" zoom while resizing the
window, this new implementation rescale the canvas without centering it,
hence providing a more fluent user experience.

There is still room for improvements (check the actual
_adg_size_allocate() docblock for further details) but the widget is
basically working properly.

Basically closes issue #3: http://dev.entidi.com/p/adg/issues/3/
src/adg-gtk/adg-gtk-area-private.h
src/adg-gtk/adg-gtk-area.c