// [UI] Automatic
Setting_GenGroupItem_Data *item_data = NULL;
item_data =
- setting_create_Gendial_field_1radio(scroller,
- &(ad->itc_1text_1icon_2),
+ setting_create_Gendial_field_def(scroller,
+ &(ad->itc_1text),
gl_sel_cb,
ad->chk_lang,
- SWALLOW_Type_1RADIO,
- ad->chk_lang, 0,
- "IDS_COM_BODY_AUTOMATIC", NULL);
+ SWALLOW_Type_INVALID, NULL, NULL,
+ 0,
+ "IDS_COM_BODY_AUTOMATIC", NULL, NULL);
if (item_data) {
item_data->userdata = ad;
} else {
EINA_LIST_FOREACH( langlist, elist, pnode)
{
item_data =
- setting_create_Gendial_field_1radio(scroller,
- &(ad->itc_1text_1icon_2),
+ setting_create_Gendial_field_def(scroller,
+ &(ad->itc_1text),
gl_sel_cb,
ad->chk_lang,
- SWALLOW_Type_1RADIO,
- ad->chk_lang,
+ SWALLOW_Type_INVALID, NULL, NULL,
//idx, // <<< WARNING
pnode->number,
- pnode->title, NULL);
+ pnode->title, NULL, NULL);
if (item_data) {
item_data->userdata = ad;
} else {
//SETTING_TRACE("chk_status = %d ", list_item->chk_status);
//SETTING_TRACE("---------------------------------------------");
/* if not change, return */
- if (ad->prev_lang == list_item->chk_status) {
- SETTING_TRACE("NOT CHANGED ");
- return;
- }
+ //if (ad->prev_lang == list_item->chk_status) {
+ // SETTING_TRACE("NOT CHANGED ");
+ // return;
+ //}
elm_radio_value_set(radio, list_item->chk_status);
setting_phone_display_language_close_popup_ex(ad);
ad->pop_progress = NULL;
}
- if (ad->selected_item) {
+ //if (ad->selected_item) {
//show the last item
- elm_genlist_item_show(ad->selected_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
- }
+ // elm_genlist_item_show(ad->selected_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
+ //}
ad->prev_region = ad->selected_region_idx;
Elm_Object_Item *item = NULL;
int i = ad->gl_region_cur_index++;
if (isEmptyStr(ad->search_text) || is_substr_ncase(ad->region_desc[i], ad->search_text)) {
item_data =
- setting_create_Gendial_field_1radio(ad->gl_region,
- &(ad->itc_1text_1icon_2),
+ setting_create_Gendial_field_def(ad->gl_region,
+ &(ad->itc_1text),
setting_phone_region_format_mouse_up_Gendial_list_radio_cb,
ad->chk_region,
- SWALLOW_Type_1RADIO,
- ad->chk_region,
+ SWALLOW_Type_INVALID, NULL, NULL,
ad->region_index[i],
- ad->region_desc[i]/* HERE */, NULL);
+ ad->region_desc[i]/* HERE */, NULL, NULL);
if (item_data) {
item_data->userdata = ad;
if (isEmptyStr(ad->search_text) ||
is_substr_ncase(ad->region_desc[i], ad->search_text)) {
item_data =
- setting_create_Gendial_field_1radio(ad->gl_region,
- &(ad->itc_1text_1icon_2),
+ setting_create_Gendial_field_def(ad->gl_region,
+ &(ad->itc_1text),
setting_phone_region_format_mouse_up_Gendial_list_radio_cb,
ad->chk_region,
- SWALLOW_Type_1RADIO,
- ad->chk_region,
+ SWALLOW_Type_INVALID, NULL, NULL,
ad->region_index[i],
- ad->region_desc[i], NULL);
+ ad->region_desc[i], NULL, NULL);
if (item_data) {
item_data->userdata = ad;
} else {
}
else {//had finished adding items
SETTING_TRACE("had finished adding items");
- if(ad->selected_item) {
+ //if(ad->selected_item) {
//show the selected_item item
- elm_genlist_item_show(ad->selected_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
- }
+ // elm_genlist_item_show(ad->selected_item, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
+ //}
if (ad->pop_progress) {
SETTING_TRACE("To delete ad->pop_progress");
evas_object_del(ad->pop_progress);
if (isEmptyStr(ad->search_text) ||
is_substr_ncase(ad->region_desc[i], ad->search_text)) {
item_data =
- setting_create_Gendial_field_1radio(ad->gl_region,
- &(ad->itc_1text_1icon_2),
+ setting_create_Gendial_field_def(ad->gl_region,
+ &(ad->itc_1text),
setting_phone_region_format_mouse_up_Gendial_list_radio_cb,
ad->chk_region,
- SWALLOW_Type_1RADIO,
- ad->chk_region,
+ SWALLOW_Type_INVALID, NULL, NULL,
ad->region_index[i],
- ad->region_desc[i], NULL);
+ ad->region_desc[i], NULL, NULL);
if (item_data) {
item_data->userdata = ad;
} else {
SETTING_TRACE("region_keyStr = %s",
ad->region_keyStr[list_item->chk_status]);
/* if not change, return */
- if (ad->prev_region == list_item->chk_status) {
- return;
- }
+ //if (ad->prev_region == list_item->chk_status) {
+ // return;
+ //}
elm_radio_value_set(radio, list_item->chk_status);
ad->prev_region = list_item->chk_status;