Copy GtkWidgetPaths correctly

The code was forgetting to copy class information.
This commit is contained in:
Matthias Clasen
2010-11-18 23:35:00 -05:00
committed by Carlos Garnacho
parent 49fed3d7d7
commit e1819055b9

View File

@ -160,6 +160,12 @@ gtk_widget_path_copy (const GtkWidgetPath *path)
g_hash_table_insert (new.regions, key, value);
}
if (elem->classes)
{
new.classes = g_array_new (FALSE, FALSE, sizeof (GQuark));
g_array_append_vals (new.classes, elem->classes->data, elem->classes->len);
}
g_array_append_val (new_path->elems, new);
}