stack: protect set_visible_child_name from NULL stack

Return with error if gtk_stack_set_visible_child_name is called
with NULL parameter
This commit is contained in:
Marco Trevisan (Treviño) 2018-04-18 20:58:57 -05:00
parent cfbbcf5fc4
commit 2ee5aee4a9

View File

@ -1836,6 +1836,8 @@ gtk_stack_set_visible_child_name (GtkStack *stack,
{
GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
g_return_if_fail (GTK_IS_STACK (stack));
gtk_stack_set_visible_child_full (stack, name, priv->transition_type);
}