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:
Vaibhav Gupta 2015-08-19 12:05:49 +05:30 committed by Amitesh Singh
parent 1cbeca359d
commit 040a35aae5
1 changed files with 1 additions and 0 deletions

View File

@ -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);