Skip to content

menusectionbox: Don't force submenu items to be sensitive

Bastien Nocera requested to merge wip/hadess/disabled-submenu into gtk-3-24

When the widget for the submenu ("List of things here >") is created from a GtkMenuTrackerItem, don't bind the "sensitive" property, as there is no way to change the GtkMenuTrackerItem's sensitivity from its default set in _gtk_menu_tracker_item_new().

We want to be able to change the widget's appearance and sensitivity based on the presence or absence of items inside the submenu, something easily done in the application, but we need to be able to change the sensitivity without it being changed again by the property binding.

See: https://bugzilla.gnome.org/show_bug.cgi?id=171424 for the GtkUIManager version of that bug

Merge request reports