~markjtully/icon-library/gtk3

« back to all changes in this revision

Viewing changes to trunk/core.py

  • Committer: Matthew McGowan
  • Date: 2009-09-27 11:31:55 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20090927113155-1bvwq76xp4daem6f
on loading of iconset properties actually check the filesystem for discoverable icons as some themes report more (or less) than actually exists.  A note is displayed at the bottom of the properties dialog if there is a mismatch between reported and discoverable icons in the set

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
gtk.gdk.threads_init()
20
20
 
21
21
 
 
22
# print colours
 
23
WARNING = "\033[93m"
 
24
FAIL = "\033[91m"
 
25
ENDC = "\033[0m"
 
26
 
 
27
 
22
28
class IconLibraryController:
23
29
    """ The App class is the controller for this application """
24
30
    def __init__(self):
937
943
        spec = StandardIconNamingSpec()
938
944
 
939
945
        self.model1.clear()
940
 
        self.model1.append( ("<b>All Contexts</b>", "") )
 
946
        self.model1.append( ("<b>All Contexts</b>", "All Contexts") )
941
947
        ctxs = list( Theme.list_contexts() )
942
948
        ctxs.sort()
943
949
        for ctx in ctxs: