view: Remove the need to explicitly set the size on the actor
authorRob Bradford <rob@linux.intel.com>
Tue, 16 Feb 2010 16:46:05 +0000 (16:46 +0000)
committerRob Bradford <rob@linux.intel.com>
Tue, 16 Feb 2010 17:56:48 +0000 (17:56 +0000)
commitf0102a8f257ad449cc859dd4cda02c299918a978
tree8ccf05f01dc0bfeb52d9c4ae4ac7d0670b3d405a
parent45ad132161635d23d591e1d713d722434a1d6b39
view: Remove the need to explicitly set the size on the actor

Firstly we need to report a size for the map using the ClutterActor
_get_preferred_width/_height virtual functions. For both the minimum and
natural dimensions we use the tile size which is the smallest sensible size
for the map.

We also need to save the dimensions of the allocation box for the actor and
save that into the private structure. We then used that in an idle to update
the content to show.
champlain/champlain-view.c