Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_wid_chat.py @ 193:284cb5c467b0
core (common): split JidItem in 3 classes:
- JidItem to only view an Entity
- JidButton to allow to click
- JidToggle to select
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 23 May 2018 18:40:58 +0200 |
parents | a826c70beda2 |
children | a3162b29cda1 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.py Tue May 22 19:25:23 2018 +0200 +++ b/cagou/plugins/plugin_wid_chat.py Wed May 23 18:40:58 2018 +0200 @@ -32,7 +32,7 @@ from sat_frontends.tools import jid from cagou.core import cagou_widget from cagou.core.image import Image -from cagou.core.common import SymbolButton, JidItem +from cagou.core.common import SymbolButton, JidButton from kivy.uix.dropdown import DropDown from kivy.core.window import Window from cagou import G @@ -318,7 +318,7 @@ for jid_, jid_data in comp_data: nick = jid_data.get(u'nick', u'') if text in jid_.bare or text in nick.lower(): - btn = JidItem( + btn = JidButton( jid = jid_.bare, profile = profile, size_hint = (0.5, None),