extern const Elm_Genlist_Item_Class itc_multiline_2text;
extern const Elm_Genlist_Item_Class itc_1text_1icon_divider;
-/*//TODO: Remove this */
-#define ADD_GL_HELP(scroller, str) \
- {\
- if (str) {\
- Setting_GenGroupItem_Data *item_data = \
- setting_create_Gendial_field_def(\
- scroller, &itc_multiline_text,\
- NULL,\
- NULL,\
- SWALLOW_Type_LAYOUT_SPECIALIZATION_X,\
- NULL, NULL, 0, str, NULL, NULL);\
- setting_retvm_if(NULL == item_data, -1, \
- "item_data is NULL");\
- elm_genlist_item_select_mode_set(item_data->item, \
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);\
- } \
- }
-
-#define _P(pEvasObj) do { \
- evas_object_event_callback_add(pEvasObj, EVAS_CALLBACK_DEL, \
- setting_protect_cb, &(pEvasObj));\
- } while (0);
-
/**
* Do process when clicking radio in subitem of expandable item
*/
ad->screen_timeout_popup = setting_create_popup_with_list(
&menu_glist, ad, ad->md.window,
KeyStr_BacklightTime, NULL, 0, false, false, 0);
- _P(ad->screen_timeout_popup);
+ if(ad->screen_timeout_popup)
+ evas_object_event_callback_add(ad->screen_timeout_popup,
+ EVAS_CALLBACK_DEL, setting_protect_cb, &(ad->screen_timeout_popup));
rdg = elm_radio_add(menu_glist);
elm_object_style_set(rdg, "list");
Setting_GenGroupItem_Data *data_keyboard;
Setting_GenGroupItem_Data *data_voice_recog;
Setting_GenGroupItem_Data *data_text_speech;
- Setting_GenGroupItem_Data *data_readout;
Setting_GenGroupItem_Data *data_title_keyboard;
Setting_GenGroupItem_Data *data_title_speech;
ad->data_title_speech);
elm_genlist_item_update(ad->data_title_speech->item);
}
- if (ad->data_readout) {
- G_FREE(ad->data_readout->sub_desc);
- /* TODO: no get_pa_noti_readout_str() function definition
- ad->data_readout->sub_desc = get_pa_noti_readout_str();
- */
- ad->data_readout->sub_desc = "no description";
- elm_object_item_data_set(ad->data_readout->item,
- ad->data_readout);
- elm_genlist_item_update(ad->data_readout->item);
- }
+
return SETTING_RETURN_SUCCESS;
}
#define __DEV_OPT
#ifndef __DEV_OPT
-
const static struct item items[] = {
- //TODO add i18n to display_title fields
+
#if 0
{ "Reset settings", setting_reset_settings_clicked, NULL},
{ "Reset network settings", setting_reset_network_clicked, NULL},
int ret = 0;
bool append_custom_dir = false;
- /*TODO: think about changing VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR
- to something which goes along with app_get_shared_resource_path()*/
-
/* Get the default file list first. */
if (ad->show_notification) {
ret = get_filelist_from_dir_path(ALERT_DIR_PATH, &ad->filelist);
}
if (ad->launched_by_external_app) {
- /* TODO: add the code to handle external launch case: */
ui_app_exit();
return;
}