~jconti/ubuntu/precise/emesene/fix-956422

« back to all changes in this revision

Viewing changes to Theme.py

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2010-04-14 01:33:51 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414013351-r2icbt5gs4ai71j8
Tags: 1.6.1-0ubuntu1
* New upstream release (LP: #562646).
* Fix missing-debian-source-format lintian warning.
* Refresh 20_dont_build_own_libmimic.patch patch.
* Bump Standards-Version to 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
        self.getSmileysList = self.smilies.getSmileysList
327
327
        self.getSingleSmileysList = self.smilies.getSingleSmileysList
328
328
    
329
 
    def statusToPixbuf(self, status):
 
329
    def statusToPixbuf(self, status, returnPix=True):
330
330
        '''Translates a status code in a pixbuf returning the according
331
331
        theme image'''
332
332
        
355
355
        elif status == 'LOG' or status == 'login':
356
356
            name = 'trayicon2'
357
357
 
 
358
        if returnPix:
 
359
            return self.returnPixbuf(name)
 
360
 
 
361
        return name
 
362
 
 
363
    def returnPixbuf(self, name):
358
364
        if name:
359
365
            return self.getImage(name)
360
366
        else: