forked from AuroraMiddleware/gtk
GtkStack: silently ignore visible-child-name set to NULL
This can happen when loading empty stacks in glade.
This commit is contained in:
parent
bef9d05812
commit
f71831c780
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user