aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2017-10-17 14:56:42 -0200
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>2017-11-15 17:06:45 +0900
commit0b6039606dc5318e6ab90f2826c5cbfc44650617 (patch)
treed42746b5df3ed551a90cf34d1053349d809a9806
parentelm: WIP code for segarray (diff)
downloadefl-0b6039606dc5318e6ab90f2826c5cbfc44650617.tar.gz
elementary: Efl_Ui_List fixed some interfaces and func signatures
-rw-r--r--src/lib/elementary/efl_ui_list.c20
-rw-r--r--src/lib/elementary/efl_ui_list_precise_layouter.c2
2 files changed, 19 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_list.c b/src/lib/elementary/efl_ui_list.c
index 436e903410..58bc4da1c5 100644
--- a/src/lib/elementary/efl_ui_list.c
+++ b/src/lib/elementary/efl_ui_list.c
@@ -1412,6 +1412,14 @@ _efl_ui_list_elm_widget_widget_event(Eo *obj, Efl_Ui_List_Data *pd, Efl_Event co
return EINA_TRUE;
}
+
+EOLIAN static Efl_Ui_List_LayoutItem *
+_efl_ui_list_efl_ui_list_model_realize(Eo *obj, Efl_Ui_List_Data *pd, Efl_Ui_List_LayoutItem *item)
+{
+ /* TODO */
+ return NULL;
+}
+
Eina_Bool
_efl_ui_list_item_select_clear(Eo *obj)
{
@@ -1514,13 +1522,14 @@ _children_slice_then(void * data, Efl_Event const* event)
Efl_Ui_List_Data *pd = data;
Eina_Accessor *acc = (Eina_Accessor*)((Efl_Future_Event_Success*)event->info)->value;
- efl_ui_list_segarray_insert(&pd->segarray, pd->outstanding_slice.slice_start, acc);
+ efl_ui_list_segarray_insert_accessor(&pd->segarray, pd->outstanding_slice.slice_start, acc);
pd->segarray_first = pd->outstanding_slice.slice_start;
pd->outstanding_slice.slice_start = pd->outstanding_slice.slice_count = 0;
}
-static void efl_ui_list_efl_ui_list_model_load_range_set(Eo* obj, Efl_Ui_List_Data* pd, int first, int count)
+EOLIAN static void
+_efl_ui_list_efl_ui_list_model_load_range_set(Eo* obj, Efl_Ui_List_Data* pd, int first, int count)
{
// slice
if(!pd->slice_future)
@@ -1532,6 +1541,13 @@ static void efl_ui_list_efl_ui_list_model_load_range_set(Eo* obj, Efl_Ui_List_Da
}
}
+EOLIAN static int
+_efl_ui_list_efl_ui_list_model_size_get(Eo *obj, Efl_Ui_List_Data *pd)
+{
+ /* TODO */
+ return 0;
+}
+
/* layout */
/* static Eina_Bool */
/* _update_items(Eo *obj, Efl_Ui_List_Data *pd) */
diff --git a/src/lib/elementary/efl_ui_list_precise_layouter.c b/src/lib/elementary/efl_ui_list_precise_layouter.c
index ef025e7a59..ec0ba81490 100644
--- a/src/lib/elementary/efl_ui_list_precise_layouter.c
+++ b/src/lib/elementary/efl_ui_list_precise_layouter.c
@@ -25,7 +25,7 @@ typedef struct _Efl_Ui_List_Precise_Layouter_Size
static void
_efl_ui_list_precise_layouter_efl_ui_list_relayout_layout_do
(Eo *obj EINA_UNUSED, Efl_Ui_List_Precise_Layouter_Data *pd
- , Efl_Ui_List_Model *modeler, Eina_Accessor* items)
+ , Efl_Ui_List_Model *modeler, int first, int ccount, Eina_Accessor *items)
{
Efl_Ui_List_LayoutItem* layout_item;
Efl_Ui_List_Precise_Layouter_Size* size;