comparison cagou/core/common.py @ 145:654b00fa3fdc

core (common): renamed JidWidget to JidItem to avoid name conflict with XMLUI
author Goffi <goffi@goffi.org>
date Sat, 14 Apr 2018 16:35:59 +0200
parents 091e288838e1
children 11ff8cd93659
comparison
equal deleted inserted replaced
144:ae58f84fe4e6 145:654b00fa3fdc
36 36
37 class IconButton(ButtonBehavior, Image): 37 class IconButton(ButtonBehavior, Image):
38 pass 38 pass
39 39
40 40
41 class JidWidget(ButtonBehavior, BoxLayout): 41 class JidItem(ButtonBehavior, BoxLayout):
42 42
43 def __init__(self, jid, profile, **kwargs): 43 def __init__(self, jid, profile, **kwargs):
44 self.jid = jid 44 self.jid = jid
45 self.profile = profile 45 self.profile = profile
46 self.nick = kwargs.get('nick') 46 self.nick = kwargs.get('nick')
47 super(JidWidget, self).__init__(**kwargs) 47 super(JidItem, self).__init__(**kwargs)
48 48
49 def getImage(self, wid): 49 def getImage(self, wid):
50 host = G.host 50 host = G.host
51 if host.contact_lists[self.profile].isRoom(self.jid.bare): 51 if host.contact_lists[self.profile].isRoom(self.jid.bare):
52 wid.opacity = 0 52 wid.opacity = 0