gtk_stack_add_named regressed since gtk3
In gtk3, something like:
foo_stack_switcher = Gtk.StackSwitcher.new()
foo_stack = Gtk.Stack.new()
foo_stack.add_named(w1, 'name1')
foo_stack.add_named(w2, 'name2')
foo_stack.add_named(w3, 'name3')
foo_stack.add_named(w4, 'name4')
foo_grid = Gtk.Grid.new()
foo_grid.add(foo_stack)
foo_grid.add(foo_stack_switcher)
resulted in a working GtkStack with a visible switcher with empty roughly square buttons (well, actually, at some point it resulted in the reversed pack order, maybe that was fixed since).
In gtk4, same results in a GtkStack with an invisible GtkSwitcher.
What's worse, switching from add_named(w1, 'name1')
to add_titled(w1, 'name1', '')
, results in much larger, more rectangular buttons (width significantly larger than height).
Would you mind fixing the first (as it's written explicitly in the code, that if both icon and title is empty, button is invisible) and not adding extra padding if the title is empty ?