forked from AuroraMiddleware/gtk
GtkStack: Fix an oversight in child renaming
We currently emit a warning if you rename a child to the name it already has. We shouldn't do that.
This commit is contained in:
parent
d31896bdba
commit
cd8576ec19
@ -650,6 +650,8 @@ gtk_stack_set_child_property (GtkContainer *container,
|
||||
for (l = priv->children; l != NULL; l = l->next)
|
||||
{
|
||||
info2 = l->data;
|
||||
if (info == info2)
|
||||
continue;
|
||||
if (g_strcmp0 (info2->name, name) == 0)
|
||||
{
|
||||
g_warning ("Duplicate child name in GtkStack: %s\n", name);
|
||||
|
Loading…
Reference in New Issue
Block a user