This patch includes (a) switching on this feature in the C core (and
diabling grotty old Wesnoth markup in this context), (b) an upgrade to
wmllint to do most of these conversions automatically (e.g. in TRoW),
(c) hand-fixes for some unual cases (in the Tutorial), and (d) a test
of Pango <i> (in THOT).
Baufo discovered if the map is smaller as the available map area the
dialogs will use the map width instead of the full area available for
the map. Now always use the available width.
This algorithm will now only be used if the normal layout algorithm
fails, this to avoid possible regressions in the new algorithm. After
1.6 this algorithm will be polished and replace the current
algorithm. (Fixes bug #13180).
This way a widget will be tried with wrapping and horizontal
scrollbars in one run. If that fails a second run will try to shrink
them. The code calling this way will be added later.
This is the start of a new and better layout algorithm.
These changes are rather late in the 1.6 cycle and will only be used if
the previous routines find no solution. This way the changes can cause
no regressions. In 1.7 these routines will become the default layout
algorithm.
Some debug code which remained to find unknown mouse buttons shouldn't
be available in production code. Especially since Silene explained there
can be more buttons as documented in the SDL documentation. Fixes
bug #13126.
Depending on the location of the cursor the ellipses are shown at the
beginning or the end. If the text is way too long the text under the
cursor can still be hiden, but pango doesn't seem to have a smart
ellipse mode. Fixes bug #13083.
AI0867 discovered the following problem:
start the test scenario, move a unit to "open sesame", move a unit to
"math test", enter a number longer than the input box, select "ints &
floats".
The game ended with an assertion failure due to using a scrollbar on an
invisible widget. Added a minimal fix, this needs to be fixed cleaner
post 1.6.
Before after the first sizing and the scrollbar not needed it was set to
a disabled mode, which meant the scrollbar would no longer be shown when
needed after resizing. Fixes bug #13018.
Another unrelated bug was discovered while fixing this issue, the side
panel gets wrongly overdrawn. This due to the undrawing, which will be
fixed post 1.6.