forked from enlightenment/efl
elm/examples: Fix layout_example_02.
Remove segfault and correctly cycle through the icons.
This commit is contained in:
parent
cc0c10f9d9
commit
44b230b56a
|
@ -1216,3 +1216,7 @@
|
||||||
2013-04-08 Jaehwan Kim
|
2013-04-08 Jaehwan Kim
|
||||||
|
|
||||||
* Fix the scroller show by a page if the page size is set and the region_bring_in or region_show is called.
|
* Fix the scroller show by a page if the page size is set and the region_bring_in or region_show is called.
|
||||||
|
|
||||||
|
2013-04-08 Rafael Antognolli
|
||||||
|
|
||||||
|
* Fix layout_example_02.
|
||||||
|
|
|
@ -28,7 +28,7 @@ _signal_cb(void *data, Evas_Object *o, const char *emission, const char *source)
|
||||||
app->current++;
|
app->current++;
|
||||||
|
|
||||||
if (app->current < 0)
|
if (app->current < 0)
|
||||||
app->current = sizeof(images) - 1;
|
app->current = (sizeof(images) / sizeof(images[0])) - 2;
|
||||||
else if (images[app->current] == NULL)
|
else if (images[app->current] == NULL)
|
||||||
app->current = 0;
|
app->current = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue