This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 87d8187b8934c0b7d91887152e70fe7b3a253fac
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 12:55:03 2026 -0600
eo: name_find documents what it searches
The documentation said it finds a child. It searches every descendant,
depth-first with each child before its own children, takes the first
match and never matches the object itself. It also refuses a search
string with a "/" in it, with an error, and an empty one. All of that is
now written down.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/eo/efl_object.eo | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo
index 34460473ef..ed4e564ebe 100644
--- a/src/lib/eo/efl_object.eo
+++ b/src/lib/eo/efl_object.eo
@@ -267,18 +267,25 @@ abstract Efl.Object
See the Life Cycle section in this class' description.]]
}
name_find @const @beta {
- [[Find a child object with the given name and return it.
+ [[Find a descendant object by name and return it.
+
+ Every descendant is searched, not only the direct children: the
+ tree is walked depth-first, each child before its own children,
+ and the first match wins. The object itself is never matched.
The search string can be a glob (shell style, using *). It can also
specify class name in the format of "class:name" where ":"
separates class and name. Both class and name can be globs.
If the class is specified but the name is empty like "class:" then
the search will match any object of that class.
+
+ Paths are not supported: a search string containing "/" finds
+ nothing, and neither does an empty one.
]]
params {
@in search: string; [[The name search string.]]
}
- return: Efl.Object; [[The first object found.]]
+ return: Efl.Object; [[The first object found, or $null.]]
}
event_thaw {
[[Thaw events of object.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.