Appmanager (pkginfo) 48/104848/1
authorRadek Kintop <r.kintop@samsung.com>
Wed, 14 Dec 2016 11:33:56 +0000 (12:33 +0100)
committerRadek Kintop <r.kintop@samsung.com>
Wed, 14 Dec 2016 11:33:56 +0000 (12:33 +0100)
- Removed Web settings option (guidelines change)

Change-Id: I0eed07c013446b2e3961a94cc4e1c9aeec20d99d
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
setting-appmgr/include/setting-appmgr.h
setting-appmgr/src/setting-appmgr-pkginfo.c

index 57634442ac706a6925b8858fbdf8222453e03160..b5a6f0d297febef596d5bb0f49c3b512dd993a4c 100644 (file)
@@ -63,7 +63,6 @@ typedef struct _SettingAppMgr_PkgInfo{
        bool is_default;
        package_info_h package_info;
        Eina_List *apps_in_package; /* [char *] data type */
-
 } SettingAppMgr_PkgInfo;
 
 typedef struct _SettingAppMgr_AppInfo{
index 8f7312bc81e2b3e00d2822f792cd9c66b2884810..241ba6ce57a2dc449252df84345023a488805754 100755 (executable)
@@ -62,7 +62,6 @@ static void _pkginfo_append_genlist(SettingAppMgr *ad);
 static void _pkginfo_append_storage(SettingAppMgr *ad);
 static void _pkginfo_append_cache(SettingAppMgr *ad);
 static void _pkginfo_append_default(SettingAppMgr *ad);
-static void _pkginfo_append_web_settings(SettingAppMgr *ad);
 static void _pkginfo_append_privilege(SettingAppMgr *ad);
 
 static int appmgr_pkg_create(void *data);
@@ -77,8 +76,6 @@ static char *pkginfo_clear_cache_text_get(void *data, Evas_Object *obj,
                                        const char *part);
 static char *pkginfo_clear_default_text_get(void *data, Evas_Object *obj,
                                                const char *part);
-static char *pkginfo_website_settings_text_get(void *data, Evas_Object *obj,
-                                               const char *part);
 static char *pkginfo_total_size_text_get(void *data, Evas_Object *obj,
                                        const char *part);
 static char *pkginfo_app_size_text_get(void *data, Evas_Object *obj,
@@ -113,7 +110,6 @@ static Eina_Bool _pkginfo_size_timer_cb(void *data);
 static Elm_Genlist_Item_Class itc_move_to_sd = {0};
 static Elm_Genlist_Item_Class itc_clear_cache = {0};
 static Elm_Genlist_Item_Class itc_clear_default = {0};
-static Elm_Genlist_Item_Class itc_website_settings = {0};
 static Elm_Genlist_Item_Class itc_total_size_item = {0};
 static Elm_Genlist_Item_Class itc_app_size_item = {0};
 static Elm_Genlist_Item_Class itc_data_size_item = {0};
@@ -232,19 +228,6 @@ static void _pkginfo_append_default(SettingAppMgr *ad)
                                        _clear_default_cb, ad);
 }
 
-static void _pkginfo_append_web_settings(SettingAppMgr *ad)
-{
-       Elm_Object_Item *tmp_item = NULL;
-       setting_create_Gendial_field_titleItem(ad->package_info_gl,
-                                       &(ad->itc_grp_title),
-                                       _("Web app"), NULL);
-       tmp_item = elm_genlist_item_append(ad->package_info_gl,
-                                       &itc_website_settings, NULL, NULL,
-                                       ELM_GENLIST_ITEM_NONE, NULL, NULL);
-       elm_genlist_item_select_mode_set(tmp_item,
-                                       ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-}
-
 static void _pkginfo_append_privilege(SettingAppMgr *ad)
 {
        int ret = 0;
@@ -294,9 +277,6 @@ static void _pkginfo_append_genlist(SettingAppMgr *ad)
        if (ad->selected_pkg.is_default)
                _pkginfo_append_default(ad);
 
-       if (ad->selected_pkg.is_webapp)
-               _pkginfo_append_web_settings(ad);
-
        _pkginfo_append_privilege(ad);
 }
 
@@ -317,8 +297,6 @@ static int appmgr_pkg_create(void *data)
        itc_clear_cache.func.text_get = pkginfo_clear_cache_text_get;
        itc_clear_default.item_style = "type1";
        itc_clear_default.func.text_get = pkginfo_clear_default_text_get;
-       itc_website_settings.item_style = "type1";
-       itc_website_settings.func.text_get = pkginfo_website_settings_text_get;
        itc_total_size_item.item_style = "type1";
        itc_total_size_item.func.text_get = pkginfo_total_size_text_get;
        itc_app_size_item.item_style = "type1";
@@ -1083,15 +1061,6 @@ static char *pkginfo_clear_default_text_get(void *data, Evas_Object *obj,
        return NULL;
 }
 
-static char *pkginfo_website_settings_text_get(void *data, Evas_Object *obj,
-                                               const char *part)
-{
-       if (!strcmp(part, "elm.text"))
-               return SAFE_STRDUP(_(IDS_BR_BODY_WEBSITE_SETTINGS));
-
-       return NULL;
-}
-
 static char *pkginfo_total_size_text_get(void *data, Evas_Object *obj,
                                        const char *part)
 {