menus: Avoid unnecessary right padding
authorMatthias Clasen <mclasen@redhat.com>
Mon, 22 May 2023 20:14:17 +0000 (16:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:57:21 +0000 (07:57 -0400)
commit9de18be775b6487b2198bbad2b2b999a1b9ad66d
treeb6f8f3b516bb6480ffa4875018755e7d437fc577
parent10c62d9e72df5b57fec11bc73b55ad0bbc020f99
menus: Avoid unnecessary right padding

We are using placeholders in the 'check' column
that are put in a size group, so that they all
take the same space once a check or radio is shown.

Unfortunately, for the inline-buttons option, we
were using a GtkBuiltinIcon as placeholder, and those
respect the -gtk-icon-size CSS property and take
a minimum size of 16px. Use a GtkGizmo instead to
get the expected result of no extra padding unless
there's a check or radio.

Fixes: #5839
gtk/gtkmenusectionbox.c