Commit 8e731560 authored by Allison Karlitskaya's avatar Allison Karlitskaya Committed by Matthias Clasen

GtkMenuTrackerItem: fix submenu visibility flag

We were only properly setting the "is-visible" flag to TRUE for menu
items with associated actions and not (for example) on submenus.

This was fine because the code for building GtkMenus from models
(correctly) assumed that submenus should always be visible and never
checked the property.

This is not true for the Mac OS code, which actually checked the
property and found it to be false for submenus.

Initialise the property to TRUE so that we get the correct value
reported for items that don't have actions.
parent 5c365b67
......@@ -556,7 +556,10 @@ _gtk_menu_tracker_item_new (GtkActionObservable *observable,
g_variant_unref (state);
self->sensitive = TRUE;
gtk_menu_tracker_item_update_visibility (self);
self->sensitive = TRUE;
return self;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment