gtk_container_class_set_template() Clear list of classes with templates since

this function in rare occacions can be called more than once. (Glade)
This commit is contained in:
Juan Pablo Ugarte
2012-09-27 21:38:31 -03:00
parent a6685346f1
commit af394406f7

View File

@@ -1408,6 +1408,12 @@ gtk_container_class_set_template (GtkContainerClass *container_class,
priv->tmpl = tmpl;
priv->tmpl_type = tmpl_type;
if (priv->tmpl_classes)
{
g_slist_free (priv->tmpl_classes);
priv->tmpl_classes = NULL;
}
/* Collect an ordered list of class which have templates to build */
for (oclass = G_OBJECT_CLASS (container_class);
GTK_IS_CONTAINER_CLASS (oclass);