From 8e24626c49a7a73cda7d0a91d47a7c2270313e66 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 17 Apr 2018 19:48:43 +0100 Subject: [PATCH] MenuShell: Sanitise take_focus bool via public API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We store in priv then compare it later, so better make sure it’s 0 or 1. --- gtk/gtkmenushell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 407d372937..515492c79a 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -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;