~ian-mcintosh/luz/trunk

« back to all changes in this revision

Viewing changes to gui/theme_liststore.rb

  • Committer: Ian McIntosh
  • Date: 2011-02-25 11:40:24 UTC
  • Revision ID: ian@openanswers.org-20110225114024-wmd9wvd34id1w0ku
- add Settings Summary support to liststores

Show diffs side-by-side

added added

removed removed

Lines of Context:
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) }
24
 
 
25
 
        TITLE_AND_TAGS_FORMAT = "%s\n<small>%s </small>"                        # NOTE: tags has an extra space so row doesn't change size when tags are added
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(', ')}") }
27
24
end