summaryrefslogtreecommitdiff
path: root/gtk/gtkmenushell.c
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2018-04-17 19:48:43 +0100
committerDaniel Boles <dboles.src@gmail.com>2018-04-17 20:40:21 +0100
commit2a7e5d5137098cecac4deb9ef7ad88e1d576ab55 (patch)
tree273f8a27f308b9ba0cfb788c67dfac3158ed928b /gtk/gtkmenushell.c
parentf6ba206d07d82503e8401e7a68783508777348e8 (diff)
downloadgtk+-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.c1
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;