linuxmint/Cinnamon — pull request #880 by autarkper (2012-07-06 07:05:31+00:00)
Title: Fix mysterious warnings caused by destroy_children.

I have found that Window List, when the user switches workspaces, will cause mysterious error messages (one for each button in the window list) to be printed to the console:

"Clutter-CRITICAL **: clutter_actor_unmap: assertion `CLUTTER_IS_ACTOR (self)' failed"

After some debugging I find that it is the line "this.myactor.destroy_children();" that produces the error messages, although it does the job of destroying the children.

This patch replaces the call to destroy_children with a loop to destroy each child individually, to get rid of the confusion until the root cause is fixed.