if (TAPI_NETWORK_SELECTIONMODE_AUTOMATIC == s_info.sel_net) {
char *sub_text = setting_customize_text(_(s_info.sel_network), 0, BLUE_COLOR, NULL);
SETTING_TRACE("sub_text:%s", sub_text);
- G_FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(sub_text);
elm_object_item_data_set(s_info.data_auto_network_item->item, s_info.data_auto_network_item);
elm_genlist_item_update(s_info.data_auto_network_item->item);
elm_genlist_item_fields_update(s_info.data_auto_network_item->item, "*", ELM_GENLIST_ITEM_FIELD_TEXT);
_(s_info.sel_network));
}
- /*SETTING_TRACE("sel_network_desc:%s", sel_network_desc); */
-
- G_FREE(s_info.data_sel_net->sub_desc);
- s_info.data_sel_net->sub_desc = (char *)g_strdup(
- _(sel_network_desc));
-
- elm_object_item_data_set(s_info.data_sel_net->item,
- s_info.data_sel_net);
+ elm_object_item_data_set(s_info.data_sel_net->item, s_info.data_sel_net);
elm_genlist_item_update(s_info.data_sel_net->item);
}
SETTING_TRACE_END;
SETTING_TRACE("Registering popup failed");
if (s_info.data_auto_network_item) {
- char *sub_text = setting_customize_text("....", 0, BLUE_COLOR, NULL);
- s_info.data_auto_network_item->sub_desc = (char *) g_strdup(sub_text);
- FREE(sub_text);
elm_object_item_data_set(s_info.data_auto_network_item->item, s_info.data_auto_network_item);
elm_genlist_item_update(s_info.data_auto_network_item->item);
}
/*elm_genlist_item_item_class_update(
* s_info.data_auto_network_item->item, &(itc_2text_1icon_7)); */
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- GRAY_COLOR, NULL);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
- elm_object_item_data_set(s_info.data_auto_network_item->item,
- s_info.data_auto_network_item);
+ elm_object_item_data_set(s_info.data_auto_network_item->item, s_info.data_auto_network_item);
elm_genlist_item_update(s_info.data_auto_network_item->item);
}
return;
}
- if (s_info.data_auto_network_item->sub_desc)
- free(s_info.data_auto_network_item->sub_desc);
-
- s_info.data_auto_network_item->sub_desc = setting_customize_text(_(network_name), 0, BLUE_COLOR, NULL);
elm_genlist_item_update(s_info.data_auto_network_item->item);
dlog_print(DLOG_DEBUG, LOG_TAG, "[%s:%d] <MS> Network name: %s", __FILE__, __LINE__, network_name);
&& ev->output.y <= (y + h)) {
return;
}
- if (s_info.data_auto_network_item->chk_status) {
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- BLUE_COLOR, NULL);
- FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
- } else {
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- GRAY_COLOR, NULL);
- FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
- }
elm_genlist_item_fields_update(s_info.data_auto_network_item->item,
"*", ELM_GENLIST_ITEM_FIELD_TEXT);
return;
}
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- WHITE_COLOR, NULL);
- FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
elm_genlist_item_fields_update(s_info.data_auto_network_item->item, "*", ELM_GENLIST_ITEM_FIELD_TEXT);
}
if (x_offset <= MIN_MOVE_DISTANCE && y_offset <= MIN_MOVE_DISTANCE)
return;
- /*SETTING_TRACE("xxxxxxxxxx"); */
- if (s_info.data_auto_network_item->chk_status) {
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- BLUE_COLOR, NULL);
- FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
- } else {
- char *sub_text = setting_customize_text(
- s_info.data_auto_network_item->sub_desc, 0,
- GRAY_COLOR, NULL);
- FREE(s_info.data_auto_network_item->sub_desc);
- s_info.data_auto_network_item->sub_desc = (char *)g_strdup(
- sub_text);
- FREE(sub_text);
- }
-
elm_genlist_item_fields_update(s_info.data_auto_network_item->item, "*", ELM_GENLIST_ITEM_FIELD_TEXT);
SETTING_TRACE_END;
Setting_GenGroupItem_Data *_add_item_to_list(char *title, setting_call_back_func on_click_cb)
{
SETTING_TRACE_BEGIN;
- char *sub_text = setting_customize_text(_(s_info.sel_network), 0, BLUE_COLOR, NULL);
-
Setting_GenGroupItem_Data *item = setting_create_Gendial_field_def(
s_info.genlist_sel_network, &itc_1text_1icon,
on_click_cb, NULL, SWALLOW_Type_INVALID,
- NULL, NULL, FALSE, title, sub_text,
+ NULL, NULL, FALSE, title, NULL,
_select_network_chk_changed);
- FREE(sub_text);
setting_retvm_if(!item, NULL, "Failed to calloc memory");
SETTING_TRACE_END;