v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
654 stars 58 forks source link

fix --form --align-buttons --align=right not working #206

Closed step- closed 9 months ago

step- commented 1 year ago

Given this test command

yad --form --field=button:FBTN --field=one --field='two and more' --align-buttons --align=right

the button label doesn't align right here. I replaced gtk_widget_set_halign (l, options.common_data.align); with gtk_button_set_alignment (GTK_BUTTON (e), options.common_data.align, 0.5); and now the button label aligns to the right. Another possible replacement, which also seems to work, is g_object_set(e, "xalign", options.common_data.align, NULL);