Ejemplo n.º 1
0
    def buddy_icon(self):
        '''
        Returns a 32 pixel version of this buddy's icon (or the generic
        replacement icon for buddies without icons).
        '''

        from gui.buddylist.renderers import get_buddy_icon
        return get_buddy_icon(self, 32, False)
Ejemplo n.º 2
0
    def buddy_icon(self):
        '''
        Returns a 32 pixel version of this buddy's icon (or the generic
        replacement icon for buddies without icons).
        '''

        from gui.buddylist.renderers import get_buddy_icon
        return get_buddy_icon(self, 32, False)
Ejemplo n.º 3
0
    def icon_for_tab(tab, width, height):
        window = tab.Window
        if window.ischat:
            return skin.get('actionsbar.icons.roomlist')

        buddy = window.Buddy
        notified = window.Tab.notified
        icon = get_buddy_icon(buddy, size=height, round_size=0, grey_offline=True, meta_lookup=True)
        return icon.WXB
Ejemplo n.º 4
0
    def icon_for_tab(tab, width, height):
        window = tab.Window
        if window.ischat:
            return skin.get('actionsbar.icons.roomlist')

        buddy = window.Buddy
        notified = window.Tab.notified
        icon = get_buddy_icon(buddy,
                              size=height,
                              round_size=0,
                              grey_offline=True,
                              meta_lookup=True)
        return icon.WXB
Ejemplo n.º 5
0
    def _contact(self, n):
        try:
            contact = self.model.get_contact(n)
            icon = get_buddy_icon(contact, self.iconsize, False)
            pending = False
        except IndexError:
            contact = self.model.get_pending_contact(n - self.model.length)
            #TODO: This is not in skin anymore
            icon = None  #skin.get('miscicons.smallspinner')
            pending = True

        leaving = self.model.contact_is_leaving(contact)

        return S(contact=contact, icon=icon, pending=pending, leaving=leaving)
Ejemplo n.º 6
0
    def _contact(self, n):
        try:
            contact = self.model.get_contact(n)
            icon = get_buddy_icon(contact, self.iconsize, False)
            pending = False
        except IndexError:
            contact = self.model.get_pending_contact(n - self.model.length)
            #TODO: This is not in skin anymore
            icon = None#skin.get('miscicons.smallspinner')
            pending = True

        leaving = self.model.contact_is_leaving(contact)

        return S(contact=contact, icon=icon, pending=pending, leaving=leaving)
Ejemplo n.º 7
0
def budicon(bud):
    from gui.buddylist.renderers import get_buddy_icon
    return get_buddy_icon(bud, round_size = False, meta_lookup=True)
Ejemplo n.º 8
0
 def buddy_icon(self):
     from gui.buddylist.renderers import get_buddy_icon
     return get_buddy_icon(self, 32, False)
Ejemplo n.º 9
0
 def buddy_icon(self):
     from gui.buddylist.renderers import get_buddy_icon
     return get_buddy_icon(self, 32, False)