mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00
Implement align_label_left for GTK 3.[14,16).
gtk_misc_set_alignment was deprecated in GTK 3.14. But my replacement code using gtk_label_set_xalign 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.
This commit is contained in:
parent
e1c2307cdd
commit
50d73d95da
@ -62,6 +62,8 @@ void align_label_left(GtkLabel *label)
|
||||
{
|
||||
#if GTK_CHECK_VERSION(3,16,0)
|
||||
gtk_label_set_xalign(label, 0.0);
|
||||
#elif GTK_CHECK_VERSION(3,14,0)
|
||||
gtk_widget_set_halign(GTK_WIDGET(label), GTK_ALIGN_START);
|
||||
#else
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user