forked from enlightenment/efl
gengrid: fix serach items in genlist by text
If a part name is NULL get text for search from TEXT part 'elm.text". @fix
This commit is contained in:
parent
f958921177
commit
d37de735eb
|
@ -398,7 +398,7 @@ _elm_gengrid_search_by_text_item_get(Eo *obj EINA_UNUSED,
|
||||||
{
|
{
|
||||||
if (!it->itc->func.text_get) continue;
|
if (!it->itc->func.text_get) continue;
|
||||||
str = it->itc->func.text_get((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)),
|
str = it->itc->func.text_get((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)),
|
||||||
WIDGET(it), part_name);
|
WIDGET(it), part_name ? part_name : "elm.text");
|
||||||
if (!str) continue;
|
if (!str) continue;
|
||||||
if (!fnmatch(pattern, str, fnflags))
|
if (!fnmatch(pattern, str, fnflags))
|
||||||
{
|
{
|
||||||
|
|
|
@ -518,7 +518,7 @@ class Elm.Gengrid (Elm.Layout, Elm.Interface_Scrollable,
|
||||||
Pointer to item to start search from. If $null, search will
|
Pointer to item to start search from. If $null, search will
|
||||||
be started from the first item of the gengrid.
|
be started from the first item of the gengrid.
|
||||||
]]
|
]]
|
||||||
@in part_name: string; [[Name of the TEXT part of gengrid item to search string in.]]
|
@in part_name: string; [[Name of the TEXT part of gengrid item to search string in. If $null, search by "elm.text" parts.]]
|
||||||
@in pattern: string; [[The search pattern.]]
|
@in pattern: string; [[The search pattern.]]
|
||||||
@in flags: Elm.Glob.Match_Flags; [[Search flags.]]
|
@in flags: Elm.Glob.Match_Flags; [[Search flags.]]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue