"Is it possible that now the icon is removed or partially unref'ed and then CD_APPLET_STOP is called?" well, the dock destroys the icons that belongs to a dock when this one is destroyed. so it's possible that the icons created by the applet are already destroyed before actually, it's quite possible since this applet is a plug-in (= has no icon, so no link to a dock). a solution is to register to the "destroy" notification on the icons created by the applet, and when the callback is called, remove it from its internal list of icons. (of course, the applet should take care of it when destroying the icons itself, for instance by removing it from the list before unrefing it). 2014-03-03 22:22 GMT+01:00 Matthieu Baerts