Been there, done that, didn't work. Is there anyway to reinstall gallery? Haha, just a wild idea
apt-get install libgallerycore --reinstall apt-get install libqtm-gallery --reinstall