elm_slideshow:

* remove printf
* no more realize the current item in item_add(). The last item is always and it is the previous item of the first item, consequently a new item was built each time a item vas added :/

SVN revision: 50386
This commit is contained in:
Jonathan Atton 2010-07-20 18:30:22 +00:00
parent c2ad5fd00c
commit 17288ba690
1 changed files with 0 additions and 7 deletions

View File

@ -105,10 +105,7 @@ static Elm_Slideshow_Item* _item_prev_get(Elm_Slideshow_Item* item)
Widget_Data *wd = elm_widget_data_get(item->obj);
Elm_Slideshow_Item* prev = eina_list_data_get(eina_list_prev(item->l));
if(!prev && wd->loop)
{
printf("LAST\n");
prev = eina_list_data_get(eina_list_last(item->l));
}
return prev;
}
static Elm_Slideshow_Item* _item_next_get(Elm_Slideshow_Item* item)
@ -315,10 +312,6 @@ elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, co
if (!wd->current) elm_slideshow_show(item);
//we realize the current item
//the idea is to realize the previous and the next items
_item_realize(wd->current);
return item;
}