~flimm/epidermis/icon-theme-bugfix

« back to all changes in this revision

Viewing changes to epidermis/pigments/xsplash_hack.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:
210
210
        
211
211
    
212
212
    def information_xml(self):
213
 
        """Returns the XML document describing the pigment"""
214
213
        doc = DirBasedPigment.information_xml(self)
215
214
        root = doc.getElementsByTagName("pigment")[0]
216
215
        
236
235
        return doc
237
236
 
238
237
    def is_activated(self):
239
 
        """Returns whether this pigment is applied. To check if the effects
240
 
        have been activated regardless of Epidermis' pigments, use is_meat_activated"""
241
238
        return self.is_meat_activated()
242
239
    
243
240
    def is_attachment_correct(self, attachmentIndex=None):
306
303
            return None
307
304
    
308
305
    def is_meat_activated(self):
309
 
        """Returns whether the meat of this pigment or similar to it is activated"""
310
306
        # TODO: finish is_meat_activated
311
307
        pass
312
308
    
313
309
    def does_activation_require_root(self):
314
 
        """Returns whether the activation requires root rights.
315
 
        If it does, the pigment object will need a pexpect bash shell as root
316
 
        to be passed to some of its methods"""
317
310
        return True
318
311
    
319
312
    def get_display_data(self, index=0):
320
 
        """Returns the object of index to be added to a gtk.ListStore, this
321
 
        could be a string, a gtk.gdk.Pixbuf or a custom widget, it should
322
 
        be rendered using type.create_cell_renderer"""
323
313
        return
324
 
 
325
 
if __name__ == "__main__":
326
 
    print __file__,"should not be run"