genlist: Fix more tree issues (expanded state)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 22 Feb 2017 04:53:03 +0000 (13:53 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 22 Feb 2017 08:05:34 +0000 (17:05 +0900)
commit3f41cdf59b091644675f438a21cba5b69e9cdc8e
tree48d9b1c70ec31c2e34b9535413bb73d91d7f803f
parentaa5414f95d37e285b4af5a5f080daf8f900b9e99
genlist: Fix more tree issues (expanded state)

This fixes a lot of cases where a genlist node (of any type)
with children may have appeared in the invalid expanded or
contracted state.

Before this patch, the test case "Genlist tree, Relative insert"
looked like below (all items are programmatically added):

> A
  > 1
  > 2
> B
  > 3
  > 4

The problem above is that A and B have visible children but
still believe they are in contracted state. This patch ensures
that A and B will be marked as expanded, but will do so without
firing an "expanded" signal and definitely without the
"expand,request" signal.

After this patch, the test case will look like this:

v A
  > 1
  > 2
v B
  > 3
  > 4

Which is more correct. Note that this test case does not handle
any expand/contract signal.

NOTE: This is a behaviour break!
src/lib/elementary/elm_genlist.c
src/lib/elementary/elm_widget_genlist.h