GtkStack: silently ignore visible-child-name set to NULL

This can happen when loading empty stacks in glade.
This commit is contained in:
Matthias Clasen 2014-11-25 00:14:47 -05:00
parent bef9d05812
commit f71831c780

View File

@ -1701,7 +1701,9 @@ gtk_stack_set_visible_child_full (GtkStack *stack,
GList *l;
g_return_if_fail (GTK_IS_STACK (stack));
g_return_if_fail (name != NULL);
if (name == NULL)
return;
child_info = NULL;
for (l = priv->children; l != NULL; l = l->next)