gtkmodelbutton: Ensure that accel label is always aligned to end
authorCorey Berla <corey@berla.me>
Mon, 9 Jan 2023 06:32:22 +0000 (22:32 -0800)
committerCorey Berla <corey@berla.me>
Mon, 9 Jan 2023 06:32:22 +0000 (22:32 -0800)
commite20bc7723ab0091c169f40e86deca44c5bd122d4
tree988ff29d8f8dcf948697202bfdf9a46aceae10bb
parent7edf8841fb604f812cee44663810c6039260f5a2
gtkmodelbutton: Ensure that accel label is always aligned to end

When the model button just has a text label and accel text,
the button fills and the accel label is implicitly aigned to end.
When there's also a icon, even though it's not shown (because
icons are only shown if there's no text), the button doesn't fill
and the accel ends up not aligned (assuming one of the other buttons
is longer). Ensure that the accel label is aligned to the end.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5504
gtk/gtkmodelbutton.c