21
21
class ThemeListStore < ParentUserObjectListStore
22
22
ICON_WIDTH, ICON_HEIGHT = (64), (32)
23
23
column :pixbuf, :type => :pixbuf, :from_object => Proc.new { |object| ThemeIcon.pixbuf($gui.window, object, ICON_WIDTH, ICON_HEIGHT) }
26
column :title_and_tags, :type => :text, :from_object => Proc.new { |object| sprintf(TITLE_AND_TAGS_FORMAT, object.title.pango_escaped.with_optional_pango_tag(object.crashy?, 'i'), (object.tags.empty?) ? '' : "tags #{object.tags.sort.collect { |t| t.with_pango_tag('u') }.join(', ')}") }