Beispiel #1
0
 def getGtkPixBufForPerson(self, person):
     '''
     return a pixbuf as picture for the network plugin
     '''    
     sp = self.get_short_profile(person.id, person.networkId)
     plugin = self.get_plugin_by_id(person.networkId)
     return plugin.getGdkPixbuf(sp)
Beispiel #2
0
 def getGtkPixBufForProfile(self, shortProfile):
     '''
     return a gtk.Image for the profile
     '''
     plugin = self.get_plugin_by_id(shortProfile.networkId)
     return plugin.getGdkPixbuf(shortProfile)