Broken accounting of active state for GtkPopoverMenu widget

I have following notice, when sometimes open context menu for AdwTabView, menu appended with AdwTabView::set_menu_model

Gtk-WARNING **: Broken accounting of active state for widget 0x556f46265970(GtkPopoverMenu)

What could it be related with?
Fedora 41

I use SimpleAction.set_state for some menu items and TabView.setup-menu to change state, but not sure it’s related because notice randomly happen even without state updates

upd. when focus on tabs - everything okay, but when move focus out, to another widget then make left-click on tab again, it print this notice

Refer https://discourse.gnome.org/t/what-does-broken-accounting-of-active-state/24474/2.

2 Likes

Thanks for link, but finally don’t understand how can I fix it as using selection model with libadwaita TabBar API

It looks like GTK bug that happened when cursor moved immediately on click the tab element. Because of that micro-movement, I get the alert in debug and popover not react on menu selection.

Any chance to wait for fix or it should be resolved manually, anyway?