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)
def getGtkPixBufForProfile(self, shortProfile): ''' return a gtk.Image for the profile ''' plugin = self.get_plugin_by_id(shortProfile.networkId) return plugin.getGdkPixbuf(shortProfile)