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:
Matthias Clasen 2014-11-18 13:36:16 +01:00
parent d31896bdba
commit cd8576ec19

View File

@ -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);