force the object icon to show up
This commit is contained in:
parent
ef6a0fa193
commit
07310bfa86
|
@ -436,14 +436,16 @@ class NamesList(Genlist):
|
|||
class ObjectItemClass(GenlistItemClass):
|
||||
def __init__(self):
|
||||
GenlistItemClass.__init__(self, item_style="group_index")
|
||||
|
||||
def text_get(self, gl, part, obj):
|
||||
return obj.name
|
||||
|
||||
def content_get(self, gl, part, obj):
|
||||
if part == 'elm.swallow.icon':
|
||||
return Icon(gl, file=theme_resource_get(obj.icon))
|
||||
return Icon(gl, size_hint_min=(22, 22),
|
||||
file=theme_resource_get(obj.icon))
|
||||
|
||||
class NodeItemClass(GenlistItemClass):
|
||||
|
||||
def __init__(self):
|
||||
GenlistItemClass.__init__(self, item_style="default_style")
|
||||
|
||||
|
|
Loading…
Reference in New Issue