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 1c16e8032f32b5e8466e010eb3df5ea6be13dc6e
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 12:55:26 2026 -0600
elementary: the range selection documentation no longer promises errors
Their documentation promised that an end outside the container "returns
an error", from functions that return nothing, and forbade $NULL for
unsigned indices. It now says what happens: an object range with an end
outside the container changes nothing, an index range stops at the last
child, both ends are included, and a range of one item is that item.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/lib/elementary/efl_ui_multi_selectable_index_range.eo | 13 ++++++-------
src/lib/elementary/efl_ui_multi_selectable_object_range.eo | 14 ++++++--------
2 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/src/lib/elementary/efl_ui_multi_selectable_index_range.eo b/src/lib/elementary/efl_ui_multi_selectable_index_range.eo
index 1a538beca3..1c4a3288a5 100644
--- a/src/lib/elementary/efl_ui_multi_selectable_index_range.eo
+++ b/src/lib/elementary/efl_ui_multi_selectable_index_range.eo
@@ -27,9 +27,9 @@ interface Efl.Ui.Multi_Selectable_Index_Range extends Efl.Ui.Multi_Selectable
[[Select a range of @Efl.Ui.Selectable objects using their indices inside the container.
This will select the range of @Efl.Ui.Selectable objects from $a to $b or from $b to $a depending on
- which one comes first.
- If $a or $b are not part of the widget, an error is returned, and no change is applied.
- $NULL is not allowed as either of the parameters.
+ which one comes first. Both ends are selected too.
+ Indices past the last child are ignored: the range stops at the
+ last child.
]]
params {
a : uint; [[One side of the range.]]
@@ -40,10 +40,9 @@ interface Efl.Ui.Multi_Selectable_Index_Range extends Efl.Ui.Multi_Selectable
[[Unselect a range of @Efl.Ui.Selectable objects using their indices inside the container.
This will unselect the range of @Efl.Ui.Selectable objects from $a to $b or from $b to $a depending on
- which one comes first.
- If $a or $b are not part of the widget, an error is returned, and no change is applied.
- $NULL is not allowed as either of the parameters.
- Both of the passed values will also be unselected.
+ which one comes first. Both ends are unselected too.
+ Indices past the last child are ignored: the range stops at the
+ last child.
]]
params {
a : uint; [[One side of the range.]]
diff --git a/src/lib/elementary/efl_ui_multi_selectable_object_range.eo b/src/lib/elementary/efl_ui_multi_selectable_object_range.eo
index deae601834..6d1ce867c8 100644
--- a/src/lib/elementary/efl_ui_multi_selectable_object_range.eo
+++ b/src/lib/elementary/efl_ui_multi_selectable_object_range.eo
@@ -19,10 +19,9 @@ interface Efl.Ui.Multi_Selectable_Object_Range extends Efl.Ui.Multi_Selectable
[[Select a range of @Efl.Ui.Selectable.
This will select the range of @Efl.Ui.Selectable objects from $a to $b or from $b to $a depending on
- which one comes first.
- If $a or $b are not part of the widget, an error is returned, and no change is applied.
- $NULL is not allowed as either of the parameters.
- Both of the passed values will also be selected.
+ which one comes first. Both ends are selected too, and when $a
+ and $b are the same item, only that item is.
+ If $a or $b is not an item of this container, nothing changes.
]]
params {
a : Efl.Ui.Selectable; [[One side of the range.]]
@@ -33,10 +32,9 @@ interface Efl.Ui.Multi_Selectable_Object_Range extends Efl.Ui.Multi_Selectable
[[Unselect a range of @Efl.Ui.Selectable.
This will unselect the range of @Efl.Ui.Selectable objects from $a to $b or from $b to $a depending on
- which one comes first.
- If $a or $b are not part of the widget, an error is returned, and no change is applied.
- $NULL is not allowed as either of the parameters.
- Both of the passed values will also be unselected.
+ which one comes first. Both ends are unselected too, and when
+ $a and $b are the same item, only that item is.
+ If $a or $b is not an item of this container, nothing changes.
]]
params {
a : Efl.Ui.Selectable; [[One side of the range.]]
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.