forked from enlightenment/efl
elm genlist/gengrid: Added documentation. Fixed documentation. Fixed
formatting. SVN revision: 65931
This commit is contained in:
parent
95f6ebae61
commit
8d0301505a
|
@ -3290,12 +3290,12 @@ newblock:
|
||||||
{
|
{
|
||||||
/* NOTE: for a strange reason eina_list and eina_inlist don't have the same property
|
/* NOTE: for a strange reason eina_list and eina_inlist don't have the same property
|
||||||
on sorted insertion order, so the queue is not always ordered like the item list.
|
on sorted insertion order, so the queue is not always ordered like the item list.
|
||||||
This lead to issue where we depend on a item that is not yet created. As a quick
|
This lead to issue where we depend on an item that is not yet created. As a quick
|
||||||
work around, we reschedule the calc of the item and stop reordering the list to
|
work around, we reschedule the calc of the item and stop reordering the list to
|
||||||
prevent any nasty issue to show up here.
|
prevent any nasty issue to show up here.
|
||||||
*/
|
*/
|
||||||
wd->queue = eina_list_append(wd->queue, it);
|
wd->queue = eina_list_append(wd->queue, it);
|
||||||
wd->requeue = EINA_TRUE;
|
wd->requeued = EINA_TRUE;
|
||||||
it->item->queued = EINA_TRUE;
|
it->item->queued = EINA_TRUE;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
@ -3483,7 +3483,7 @@ _item_queue(Widget_Data *wd,
|
||||||
{
|
{
|
||||||
if (it->item->queued) return;
|
if (it->item->queued) return;
|
||||||
it->item->queued = EINA_TRUE;
|
it->item->queued = EINA_TRUE;
|
||||||
if (cb && !wd->requeue)
|
if (cb && !wd->requeued)
|
||||||
wd->queue = eina_list_sorted_insert(wd->queue, cb, it);
|
wd->queue = eina_list_sorted_insert(wd->queue, cb, it);
|
||||||
else
|
else
|
||||||
wd->queue = eina_list_append(wd->queue, it);
|
wd->queue = eina_list_append(wd->queue, it);
|
||||||
|
@ -3781,7 +3781,7 @@ elm_genlist_item_direct_sorted_insert(Evas_Object *obj,
|
||||||
{
|
{
|
||||||
wd->state = eina_inlist_sorted_state_new();
|
wd->state = eina_inlist_sorted_state_new();
|
||||||
eina_inlist_sorted_state_init(wd->state, wd->items);
|
eina_inlist_sorted_state_init(wd->state, wd->items);
|
||||||
wd->requeue = EINA_FALSE;
|
wd->requeued = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (it->group)
|
if (it->group)
|
||||||
|
|
|
@ -133,6 +133,7 @@ struct _Widget_Data
|
||||||
Eina_Bool reorder_pan_move : 1;
|
Eina_Bool reorder_pan_move : 1;
|
||||||
Eina_Bool auto_scroll_enabled : 1;
|
Eina_Bool auto_scroll_enabled : 1;
|
||||||
Eina_Bool pan_resized : 1;
|
Eina_Bool pan_resized : 1;
|
||||||
|
Eina_Bool requeued : 1; /* this is set to EINA_TRUE when the item is re-queued. this happens when the item is un-queued but the rel item is still in the queue. this item will be processed later. */
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
Evas_Coord x, y;
|
Evas_Coord x, y;
|
||||||
|
@ -147,7 +148,6 @@ struct _Widget_Data
|
||||||
|
|
||||||
Eina_Compare_Cb item_compare_cb;
|
Eina_Compare_Cb item_compare_cb;
|
||||||
Eina_Compare_Cb item_compare_data_cb;
|
Eina_Compare_Cb item_compare_data_cb;
|
||||||
Eina_Bool requeue : 1;
|
|
||||||
|
|
||||||
/* The stuff below directly come from gengrid without any thinking */
|
/* The stuff below directly come from gengrid without any thinking */
|
||||||
unsigned int nmax;
|
unsigned int nmax;
|
||||||
|
|
Loading…
Reference in New Issue