From d4ee2c1fce9e0791c960a9933ea3e43d1a1829d4 Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Wed, 2 Oct 2019 14:01:04 +0200 Subject: Remove About device submenus 1. Remove About Device -> Status -> Battery percentage list item 2. Remove About Device -> Status -> Device status list item Change-Id: I76fec10aa26e21000ab4d56b144e8a162f7dbc1c --- setting-about/src/setting-about-status.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/setting-about/src/setting-about-status.c b/setting-about/src/setting-about-status.c index 3227bfb..494f1ec 100644 --- a/setting-about/src/setting-about-status.c +++ b/setting-about/src/setting-about-status.c @@ -41,7 +41,6 @@ static void __get_wifi_mac_address(char *str, int size); static void __get_storage_capacity(char *str, int size); static void __get_battery_percent(char *str, int size); static int __stat_get_cpuinfo(float *usr_pct, float *sys_pct); -static void __get_device_status(char *str, int size); setting_view view_setting_about_status = { .create = _view_create, @@ -318,16 +317,6 @@ static int __generate_genlist(void *data) elm_object_item_disabled_set(ad->item_data_storage->item, EINA_TRUE); - /* [UI] Battery power */ - __get_battery_percent(str, sizeof(str)); - ad->item_data_battery = setting_create_Gendial_field_def(ad->status_gl, - &(ad->itc_2text_2), NULL, ad, SWALLOW_Type_INVALID, - NULL, NULL, 0, _("IDS_ST_BODY_BATTERY_PERCENTAGE_ABB"), - str, NULL); - if (ad->item_data_battery) - elm_object_item_disabled_set(ad->item_data_battery->item, - EINA_TRUE); - /* [UI] CPU usage */ ret = __stat_get_cpuinfo(&usr, &sys); if (ret == -ENOENT) { @@ -346,15 +335,6 @@ static int __generate_genlist(void *data) __BACK_POINTER_SET(ad->item_data_cpu); } - /* [UI] Device status */ - __get_device_status(str, sizeof(str)); - item_data = setting_create_Gendial_field_def(ad->status_gl, - &(ad->itc_2text_2), NULL, ad, SWALLOW_Type_INVALID, - NULL, NULL, 0, _("IDS_ST_MBODY_DEVICE_STATUS"), str, - NULL); - if (item_data) - elm_object_item_disabled_set(item_data->item, EINA_TRUE); - elm_genlist_select_mode_set(ad->status_gl, ELM_OBJECT_SELECT_MODE_NONE); return SETTING_RETURN_SUCCESS; @@ -650,10 +630,3 @@ out: return ret; } -/*TODO: try this int is_slp_binary()*/ -static void __get_device_status(char *str, int size) -{ - snprintf(str, size, "%s", _("IDS_ST_HEADER_UNAVAILABLE")); -} - - -- cgit v1.2.3