From 8d9e1e0002d5b89a191a3f44f3e6ec3100076e6f Mon Sep 17 00:00:00 2001 From: Priya Kohli Date: Fri, 4 Aug 2017 11:11:49 +0530 Subject: [PATCH] Sending description as null for IP address. Added check for not diplaying edit box if null description is passed. Change-Id: Ibbd0fdc9a32257272a1e6824d2a84d970063b7fc Signed-off-by: Priya Kohli --- sources/libraries/Common/common_ip_info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/libraries/Common/common_ip_info.c b/sources/libraries/Common/common_ip_info.c index b51948e..7b580e2 100755 --- a/sources/libraries/Common/common_ip_info.c +++ b/sources/libraries/Common/common_ip_info.c @@ -117,7 +117,7 @@ static Evas_Object *_ip_info_detail_description_content_get(void *data, evas_object_size_hint_align_set(title_label, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_object_part_content_set(layout, "elm.swallow.label", title_label); - if (g_strcmp0(dgettext(PACKAGE, det->title), "IP address")) { + if (det->description) { snprintf(buf, MAX_LABEL_LENGTH, "%s", dgettext(PACKAGE, det->description)); elm_object_text_set(layout, buf); } @@ -907,7 +907,7 @@ static void __ip_info_toggle_item_sel_cb(void* data, ip_info_list_data->ip_addr_item = _add_description( ip_info_list_data->genlist, "IDS_WIFI_BODY_IP_ADDRESS", - ip_addr, + NULL, ip_info_list_data->ip_toggle_item); if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR))) @@ -1210,7 +1210,7 @@ full_ip_info_t *ip_info_append_items(wifi_manager_ap_h ap, const char *pkg_name, prev_ip_info->ip_addr = g_strdup(ip_addr); ip_info_list_data->ip_addr_item = _add_description(genlist, - "IDS_WIFI_BODY_IP_ADDRESS", ip_addr, NULL); + "IDS_WIFI_BODY_IP_ADDRESS", NULL, NULL); if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR))) ip_info_list_data->ipv4_addr_item = _add_description(genlist, -- 2.7.4