int nStatus;
appdata_s *ad=data;
-
+ // lets create dummy data
+ char *pick_data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!", "Dummy(Not to be selected)"};
if(was_requested)
{
char *values[selectionCount];
int now=0;
-
+ int index;
EINA_LIST_FOREACH(items, l, list_it)
{
char *value = NULL;
#ifdef USE_GENLIST
- value=(char*)elm_object_item_part_text_get(list_it, "elm.text");
+ index = elm_genlist_item_index_get(list_it);
+ DBG("index = %d", index);
+ values[now++]=pick_data[index-1];
#else
value=(char*)elm_object_item_text_get(list_it);
-#endif
if(value) {
values[now++]=value;
}
-
+#endif
}
- nStatus = app_control_add_extra_data_array ( reply, "values", (const char**)values,selectionCount);
+ nStatus = app_control_add_extra_data_array ( reply, "values", (const char**)values,now);
DBG("app_control_add_extra_data_array=%s",get_app_control_error(nStatus));
}
-
/**
* @function create_base_gui
* @since_tizen 2.3
// lets create dummy data :D
- char *data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!"};
+ char *data[]={"Artcell", "Dream Theater", "Pink Floyd","Iron Maiden","SOAD","Prisoners","Poets Of The Fall","Endless River","No room for looser!", "Dummy(Not to be selected)"};
ad->items=data;
- ad->itemCount=9;
+ ad->itemCount=10;