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 b4d181cf626601ed508dce5edbc2ebf180643896
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 15 20:30:36 2026 -0600
elementary: select_model: none clears despite no manual deselection
With allow_manual_deselection false, single -> none -> single kept the
old row when the mode came back before the queued unselects ran: they
then met single mode and the refusal meant for a person giving up the
selection.
Going to none is the mode taking the selection away, not a manual
deselection, so those unselects are not refused and nothing (the
fallback included) takes the place of what they unselect. Back in single
mode, nothing is selected until a row is picked.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/tests/elementary/efl_ui_test_select_model.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/tests/elementary/efl_ui_test_select_model.c b/src/tests/elementary/efl_ui_test_select_model.c
index d10bfacc6b..faf51a7ddf 100644
--- a/src/tests/elementary/efl_ui_test_select_model.c
+++ b/src/tests/elementary/efl_ui_test_select_model.c
@@ -991,7 +991,10 @@ EFL_START_TEST(efl_test_select_model_none_clears_without_manual_deselection)
for (round = 0; round < 2; round++)
{
efl_ui_multi_selectable_ndx_range_select(model, 1, 1);
- for (i = 0; i < 12; i++) ecore_main_loop_iterate();
+ for (i = 0; i < 12; i++)
+ {
+ ecore_main_loop_iterate();
+ }
ck_assert_int_eq(_selected_count(model, &first), 1);
ck_assert_int_eq(first, 1);
@@ -999,7 +1002,10 @@ EFL_START_TEST(efl_test_select_model_none_clears_without_manual_deselection)
// (round 0: back to single in the same turn, round 1: once the unselects ran)
if (round) for (i = 0; i < 12; i++) ecore_main_loop_iterate();
efl_ui_multi_selectable_select_mode_set(model, EFL_UI_SELECT_MODE_SINGLE);
- for (i = 0; i < 12; i++) ecore_main_loop_iterate();
+ for (i = 0; i < 12; i++)
+ {
+ ecore_main_loop_iterate();
+ }
ck_assert_int_eq(_selected_count(model, NULL), 0);
ck_assert_ptr_eq(efl_ui_selectable_last_selected_get(model), NULL);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.