gtkmm4.0 set_can_focus is broken
As the title says. As of today I compiled gtkmm against the latest gtk4.0.2 (Fedora 33) and it still happens.
Easy to recreate with the gtkmm-demo dialog example
m_Grid.attach(m_Label1, 0, 0); m_Entry1.set_text(entry1); m_Grid.attach(m_Entry1, 1, 0); m_Label1.set_mnemonic_widget(m_Entry1); // add the line m_Entry1.set_can_focus(false);
You can still click the widget and interact with it, enter text. gtkmm3 works fine. I suspect it is an underlying gtk issue, so feel free to move it along.
Cheers.
NB: I didnt check if it is unique to the text entry widget only, or if it happens to others (eg spinbox) or anything else that can receive input.