def METHOD_NAME(self):
    # Use the generic type icon
    self.set_logo_icon_name('cs-%s' % self.metadata['type'])
    # Override with metadata if set..
    if 'icon' in self.metadata:
        self.set_logo_icon_name(self.metadata['icon'])
    # Override with icon.png if present
    icon_path = os.path.join(self.metadata['path'], 'icon.png')
    if os.path.exists(icon_path):
        icon = GdkPixbuf.Pixbuf.new_from_file_at_size(icon_path, 48, 48)
        self.set_logo(icon)
    self.set_default_icon_name('cs-%s' % self.metadata['type'])