adding submenu to gtk_check_menu_item produces odd results
gtk+ 3.24, linux ubuntustudio
Adding a submenu to a gtk_check_menu_item results in the following odd behaviour: passing the mouse over the menuitem causes it to alternately activate and deactivate. In addition, clicking on the check_menu_item doesnt toggle the state, but does show the submenu.
The idea behind creating a check menu item with a submenu - by setting the submenu sensitive / insensitive depending on the menu item state, it is possible to only show the submenu when the menu item is active. ie.:
check off - no submenu shown click on menuitem, toggle goes on, submenu shown click again on menuitem, toggle goes off, no submenu shown
(the showing / hiding state isn't and shouldn't be automatic, this can be done with a callback for the TOGGLED signal which sets the submenu sensitive / insensitive)
what I think should happen:
- passing the mouse over the menu item should not change its state, and should only pop up the submenu
- clicking on the check_menu_item should toggle its state in addition to popping up the submenu.
TIA.