I was trying to solve NetworkManager icon disappearence, and following some tips I executed this command:
rm -rf ~/.gconf/apps/panel
Not only it didn't worked, but windows decorations disappeared as well (title, close button, etc) and who knows what else that I didn't noticed.
I found the other question about this issue, but I want a permanent solution... running metacity --replace
fixes the issue until next login, and adding it to the startup commands sound lame. I want to undo the damage, not put duct tape over it.
Note: Ubuntu 10.10 with compiz
New (partial) solution:
gconftool --recursive-unset /apps/panel
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
I don't know exactly what is being done here (removing a folder, killing a process), but my decorations and icons are back. It removed additional icons I had set on the panel, and may have disabled some compiz settings (I'm not sure about that, it could be earlier side effect of my various 'fixes'), nothing serious.
Unfortunately, on the next full restart, decorations missing again.