mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
improve object_find
This commit is contained in:
parent
65eecda31b
commit
1b2aa3fe38
@ -3,6 +3,7 @@
|
||||
2024/09/05
|
||||
* 支持用户自己调用 OpenGL 绘制。
|
||||
* 完善部分变量定义方便调试(感谢兆坤提供补丁)
|
||||
* 修复object_find不正常的问题(感谢智明提供补丁)
|
||||
|
||||
2024/09/04
|
||||
* 完善event\_from\_name(感谢兆坤提供补丁)
|
||||
|
@ -857,7 +857,7 @@ static value_t* tk_object_find_prop_default(tk_object_t* obj, tk_compare_t cmp,
|
||||
actx.cmp = cmp;
|
||||
actx.data = data;
|
||||
actx.value = NULL;
|
||||
if (RET_OK == tk_object_foreach_prop(obj, tk_object_find_prop_default_on_visit, &actx)) {
|
||||
if (RET_FOUND == tk_object_foreach_prop(obj, tk_object_find_prop_default_on_visit, &actx)) {
|
||||
return actx.value;
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user