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.
This commit is contained in:
Daniel Boles 2018-04-17 19:48:43 +01:00
parent bcc539ca07
commit 8e24626c49

View File

@ -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;