Commit 8e24626c authored by Daniel Boles's avatar Daniel Boles

MenuShell: Sanitise take_focus bool via public API

We store in priv then compare it later, so better make sure it’s 0 or 1.
parent bcc539ca
......@@ -1948,6 +1948,7 @@ gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell,
priv = menu_shell->priv;
take_focus = !!take_focus;
if (priv->take_focus != take_focus)
{
priv->take_focus = take_focus;
......
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