~flimm/epidermis/icon-theme-bugfix

« back to all changes in this revision

Viewing changes to epidermis/pigments/icons.py

  • Committer: David D Lowe
  • Date: 2011-01-04 22:50:19 UTC
  • Revision ID: daviddlowe.flimm@gmail.com-20110104225019-uo31kb54cbxjt5vt
Tidy up code with better comments.
Deleted unused functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        progressCallback(1.0)
57
57
    
58
58
    def is_activated(self):
59
 
        """Returns whether this pigment is applied. To check if the effects
60
 
        have been activated regardless of Epidermis' pigments, use is_meat_activated"""
61
59
        return self.is_meat_activated()
62
60
 
63
61
    def is_attachment_correct(self, attachmentIndex=None):
77
75
    
78
76
    
79
77
    def is_meat_installed(self):
80
 
        """Returns whether the meat of this pigment or similar to it is installed"""
81
78
        (md1, md2) = (hashlib.md5(), hashlib.md5())
82
79
        try:
83
80
            f1 = glob(self.attPath + "/*") 
102
99
        
103
100
    
104
101
    def is_meat_activated(self):
105
 
        """Returns whether the meat of this pigment or similar to it is activated"""
106
102
        (md1, md2) = (hashlib.md5(), hashlib.md5())
107
103
        client = gconf.client_get_default()
108
104
        try:
133
129
            return pb
134
130
    
135
131
    def does_activation_require_root(self):
136
 
        """Returns whether the activation requires root rights.
137
 
        If it does, the pigment object will need a pexpect bash shell as root
138
 
        to be passed to some of its methods"""
139
132
        return False
140
133
    
141
134
    def get_display_data(self, index=0):
142
 
        """Returns the object of index to be added to a gtk.ListStore, this
143
 
        could be a string, a gtk.gdk.Pixbuf or a custom widget, it should
144
 
        be rendered using type.create_cell_renderer"""
145
135
        return
146
 
 
147
 
def main():
148
 
    wp = Icons()
149
 
    print wp.information_xml().toxml()
150
 
 
151
 
if __name__ == "__main__":
152
 
    main()