diff options
author | Daniel Boles <dboles.src@gmail.com> | 2018-04-17 19:48:43 +0100 |
---|---|---|
committer | Daniel Boles <dboles.src@gmail.com> | 2018-04-17 20:40:21 +0100 |
commit | 2a7e5d5137098cecac4deb9ef7ad88e1d576ab55 (patch) | |
tree | 273f8a27f308b9ba0cfb788c67dfac3158ed928b /gtk/gtkmenushell.c | |
parent | f6ba206d07d82503e8401e7a68783508777348e8 (diff) | |
download | gtk+-2a7e5d5137098cecac4deb9ef7ad88e1d576ab55.tar.gz |
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.
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index a69bc0ada8..494aff5402 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -1692,6 +1692,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; |