[ClutterText] Fix actors with a width but no wrapping and the wrap modes
authorNeil Roberts <neil@linux.intel.com>
Tue, 21 Apr 2009 13:15:19 +0000 (14:15 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 27 Apr 2009 16:43:48 +0000 (17:43 +0100)
commit9fdc9ca583e1b3e0dd81d7322732156d3eb121b7
tree74839a425eeee140aa8c06d8fb9cd33cc007eb9c
parent27bea43a4d7b792159622ad67f1ddbb0919f3d94
[ClutterText] Fix actors with a width but no wrapping and the wrap modes

Setting the wrap mode on the PangoLayout seems to have disappeared
during the text-actor-layout-height branch merge so this brings it
back. The test for this in test-text-cache no longer needs to be
disabled.

We also shouldn't set the width on the layout if there is no wrapping
or ellipsizing because otherwise it implicitly enables wrapping. This
only matters if the actor gets allocated smaller than its natural
size.
clutter/clutter-text.c
tests/conform/test-text-cache.c