diff options
author | Kiseok Chang <kiso.chang@samsung.com> | 2019-10-07 02:23:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2019-10-07 02:23:36 +0000 |
commit | 243e2138706446e4026e253b1b20dad3c39f8d8d (patch) | |
tree | 151ba60538ca58f6780eaebc0ba98fcd8198ddda | |
parent | 7e564a043ab368bce87d57a3004a24f5e2eccab5 (diff) | |
parent | d4ee2c1fce9e0791c960a9933ea3e43d1a1829d4 (diff) | |
download | settings-243e2138706446e4026e253b1b20dad3c39f8d8d.tar.gz settings-243e2138706446e4026e253b1b20dad3c39f8d8d.tar.bz2 settings-243e2138706446e4026e253b1b20dad3c39f8d8d.zip |
Merge "Remove About device submenus" into tizen
-rw-r--r-- | setting-about/src/setting-about-status.c | 27 |
1 files changed, 0 insertions, 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")); -} - - |