take a look at gnome2_icon_cache_update from gnome2-utils.eclass