Label alignment inconsistent between gtk/pango versions
Submitted by Olivier Fourdan
Link to original bug (#335551)
Description
Please describe the problem: It seems that the alignment of the label changes when setting the ellipsize property and I can't find how to get a consistent behavior between gtk+-2.8 with pango 1.10 and pango 1.12.
To illustrate that, I've made a small test program, available here:
http://www.xfce.org/~olivier/misc/testalign.tar.gz
Then I run the same executable on 2 different gtk+ versions and get different results, screenshot here:
http://www.xfce.org/~olivier/misc/testalign.png
The first one is with gtk+-2.4 so ellipisze property has no effect and generates a warning at runtime (expected).
But when run with gtk+-2.8 and pango 1.10, the label is aligned on the right (this is unexpected).
When run with gtk+-2.8 and pango 1.12, the label is properly centered.
Also, note that if I don't reset the "justify" property, then it's just the contrary, the label is centered with gtk+-2.8/pango-1.10 and left aligned with gtk+-2.8/pango-1.12.
Steps to reproduce:
Actual results:
Expected results:
Does this happen every time?
Other information:
Version: 1.12.x