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, 22 May 2023 20:16:45 +0000 (16:16 -0400)
commita9adf7163f322378787ea63db999b2306e2aeed7
tree39b7bcb94f93ab213f17d1016efbf3fb41eaf2e1
parent10825cdc720d15c4185c8d7c3ce180f227498c94
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