forked from enlightenment/efl
test_scroller: Fix item count variable
Summary: Since the _count variable is static, the buttons which are added to scroller, get text value ahead of previously added count, instead of starting from 1 every time a new window is opened for the example. Signed-off-by: Vaibhav Gupta <g.vaibhav1@samsung.com> Test Plan: Following is the test: 1. Open Scroller 3 sample 2. Add some items and note the "Item count value of added buttons 3. Close the sample 4. Re-open Scroller 3 sample, and again add some items 5. Observe the "Item count" text of added buttons. Reviewers: raster, Hermet, singh.amitesh Subscribers: sachin.dev Differential Revision: https://phab.enlightenment.org/D2959
This commit is contained in:
parent
1cbeca359d
commit
040a35aae5
|
@ -572,6 +572,7 @@ void
|
|||
test_scroller3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bt, *bt2, *bt3, *bx, *bx2, *bx3, *bx4, *sc;
|
||||
_count = 0;
|
||||
|
||||
win = elm_win_util_standard_add("scroller3", "Scroller 3");
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
|
Loading…
Reference in New Issue