chiark / gitweb /
Implement align_label for GTK 3.[14,16).
authorSimon Tatham <anakin@pobox.com>
Sun, 6 Dec 2015 16:00:10 +0000 (16:00 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 6 Dec 2015 16:00:10 +0000 (16:00 +0000)
commit7000b0c70a409afc427b3012d55366577dc0418e
tree2054055ebfbffd5f204016d55c27daa9b0ca5426
parent346584bf6e38232be8773c24fd7dedcbd7b3d9ed
Implement align_label for GTK 3.[14,16).

gtk_misc_set_alignment was deprecated in GTK 3.14. But my replacement
code using gtk_label_set_{x,y}align doesn't work there, because that
function wasn't introduced until GTK 3.16, so there are two minor
versions in the middle where a third strategy is needed.

(That middle strategy doesn't permit arbitrary float alignments, but
that's OK, bceause we only actually use multiples of 0.5.)
gtk.c