[AdgGtkLayout] Try to set the proper size to the parent
commit371d016429af7328cc9eb0851dcc943794327d09
authorNicola Fontana <ntd@entidi.it>
Sun, 9 Jan 2011 02:25:14 +0000 (9 03:25 +0100)
committerNicola Fontana <ntd@entidi.it>
Sun, 9 Jan 2011 02:25:14 +0000 (9 03:25 +0100)
tree4a974d1a10ae4d2c6437c95d9cbf2ea56219012e
parent518d8706bbf0db5eddc54639819411e87628f648
[AdgGtkLayout] Try to set the proper size to the parent

The GtkScrolledWindow widget (usually the parent of an AdgGtkLayout) is
somewhat cumbersome to use because seems to expect an explicit size [0].
Added hackish solution to suggest a sensible size AdgGtkLayout to
GtkScrolledWindow whenever the canvas is changed or the AdgGtkLayout is
added to a container.

[0] Automatic sizing is enabled only when the scrollbar policy is set to
    GTK_POLICY_NEVER.
demo/adg-demo.ui.in
src/adg-gtk/adg-gtk-layout-private.h
src/adg-gtk/adg-gtk-layout.c