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:
parent
bcc539ca07
commit
8e24626c49
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user