No API for adding custom widget to GtkMenuButton
A common use case for GtkMenuButton is having an icon and a secondary downward arrow icon on the side, like in GNOME Games or in the following screenshot:
This is easily achieved with a custom child widget and sure enough it was doable in GTK3, but in GTK4 GtkMenuButton doesn't have a set_child
function, unlike GtkButton that does.
Currently it's possible to work around this issue by calling menubutton.get_first_child().set_child()
, but it's kinda hacky and having a proper API would probably be better.
CC: @exalm