After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735841 - EmptyBoxes: instructions_label's alignment is off
EmptyBoxes: instructions_label's alignment is off
Product: gtk+
Classification: Platform
Component: Widget: GtkLabel
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
: 736541 (view as bug list)
Depends on:
Reported: 2014-09-01 19:33 UTC by Timm Bäder
Modified: 2014-09-30 03:57 UTC
See Also:
GNOME target: 3.16
GNOME version: ---

Screenshot of the problem (5.95 KB, image/png)
2014-09-01 19:33 UTC, Timm Bäder
GtkLabel: add x/yalign properties (8.61 KB, patch)
2014-09-16 03:19 UTC, Matthias Clasen
committed Details | Review

Description Timm Bäder 2014-09-01 19:33:18 UTC
Created attachment 285067 [details]
Screenshot of the problem

See attached screenshot. It's probably been like that since f32c32059a96186cac819cd2bd2b6653c2ce04d0 because halign=START is not enough for multiline labels. If the label's allocation is larger than the PangoLayout it contains, the text will still be centered since xalign=0.5. I won't attach a patch since I don't know how important the xalign-freedom is (or why the UI in EmptyBoxes is built the way it is).
Comment 1 Zeeshan Ali 2014-09-09 19:39:59 UTC
Turns out there really is no way of fixing this with current gtk+. I think gtk+ should provide alternative API before deprecating existing one. I'll assign this to gtk+ now and insert a work around with a URL to this bug in the comment.
Comment 2 Zeeshan Ali 2014-09-12 13:39:44 UTC
*** Bug 736541 has been marked as a duplicate of this bug. ***
Comment 3 Matthias Clasen 2014-09-16 03:19:54 UTC
Created attachment 286252 [details] [review]
GtkLabel: add x/yalign properties

Since it turns out that x/yalign can't be quite equivalently
replaced by h/valign, bring them back as label properties, so
we can eventually get rid of GtkMisc.
Comment 4 Matthias Clasen 2014-09-30 03:57:32 UTC
Attachment 286252 [details] pushed as d39424f - GtkLabel: add x/yalign properties