Menu: Sanitise @torn_off gboolean in public API

This commit is contained in:
Daniel Boles
2018-04-17 19:56:54 +01:00
parent 30405ee68c
commit a7a4a459ea

View File

@@ -2967,6 +2967,7 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
priv = menu->priv;
torn_off = !!torn_off;
if (priv->torn_off != torn_off)
{
priv->torn_off = torn_off;