Wrapping long header lines



Hi All!

Some time ago, the gtk3 branch began setting long header lines so that they can be toggled between 
one-line-ellipsized and multi-line-wrapped. Toggling is controlled by an expander button at the end of the 
first line. The header is initially one-line-ellipsized if showing selected headers, and multi-line-wrapped 
if showing all headers.

In builds with recent Gtk libs, the rendering has been broken after toggling to multi-line-wrapped. Sometimes 
all lines except the first are cropped, sometimes they are overlaid on the next lines. Moving the keyboard 
focus to another window and back fixes the rendering, until you toggle again.

Apparently, but unobviously, this was caused by the way Balsa used the GtkLabel API. An experiment has shown 
that a different usage fixes the rendering issue, at least in recent Gtk versions (3.20 and master), and it 
has been pushed to git. However, it has not been tested in older Gtk versions, where the previous code worked 
just fine. If the new code causes problems with older versions of Gtk, the change could be made conditional 
on some version number, if we can figure out where the break came.

Thanks for any help in testing!

Peter

Attachment: pgpGp3NNk62le.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]