Set canShrink property.
Whether the button can be smaller than the natural size of its contents.
If set to TRUE, the label will ellipsize.
See property@Gtk.Button:can-shrink and property@Gtk.MenuButton:can-shrink.
Set canShrink property.