From: Hyojung Jo Date: Thu, 30 Jul 2015 10:58:14 +0000 (+0900) Subject: Temporarily show the 'not supported' message on App Store menu X-Git-Tag: submit/tizen/20150730.133500^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e1051a67b81b60862159d5859bd9d5fd10f7bcc;p=profile%2Ftv%2Fapps%2Fnative%2Fair_apps.git Temporarily show the 'not supported' message on App Store menu Change-Id: If3aee3b92f912c2532ffe9e59e6a4c60ee9af57a Signed-off-by: Hyojung Jo --- diff --git a/include/define.h b/include/define.h index 617ecd2..406290c 100644 --- a/include/define.h +++ b/include/define.h @@ -35,7 +35,7 @@ #define PART_SORT "part.sort" #define PART_GENGRID "part.gengrid" #define PART_APP_COUNT "part.app.count" -#define PART_NO_CONTENTS "part.no.contents" +#define PART_CONTENTS_TEXT "part.contents.text" #define PART_FAVORITE_ICON "part.favorite.icon" #define PART_THUMB_BG "part.thumb.bg" #define PART_THUMB_ICON "part.thumb.icon" @@ -81,6 +81,7 @@ #define STR_NO_CONTENTS "No Contents" #define STR_BROWSER_ID "org.tizen.browser" #define STR_BROWSER "Web Browser" +#define STR_NOT_SUPPORTED "Not Supported" /* Count */ #define MENU_COUNT 2 diff --git a/res/view/base.edc b/res/view/base.edc index 8825ac3..ec920e8 100644 --- a/res/view/base.edc +++ b/res/view/base.edc @@ -223,7 +223,7 @@ group { } part { - name, "padding.no.contents1"; + name, "padding.text1"; type, SPACER; scale, 1; description { @@ -236,7 +236,7 @@ group { } part { - name, "padding.no.contents2"; + name, "padding.text2"; type, SPACER; scale, 1; description { @@ -249,18 +249,18 @@ group { } part { - name, PART_NO_CONTENTS; + name, PART_CONTENTS_TEXT; type, TEXT; scale, 1; description { state, "default" 0.0; color, 0 0 0 178; rel1 { - to, "padding.no.contents1"; + to, "padding.text1"; relative, 1.0 1.0; } rel2 { - to, "padding.no.contents2"; + to, "padding.text2"; relative, 0.0 0.0; } text { diff --git a/src/view/view_base.c b/src/view/view_base.c index afaae9d..8f83f95 100644 --- a/src/view/view_base.c +++ b/src/view/view_base.c @@ -100,10 +100,13 @@ static void _menu_focused_cb(int id, void *data, Evas_Object *obj, switch (id) { case MENU_MYAPPS: elm_object_signal_emit(priv->base, SIG_VISIBLE, SRC_MYAPPS); + elm_object_part_text_set(priv->base, PART_CONTENTS_TEXT, ""); break; case MENU_APPSTORE: elm_object_signal_emit(priv->base, SIG_INVISIBLE, SRC_MYAPPS); + elm_object_part_text_set(priv->base, PART_CONTENTS_TEXT, + STR_NOT_SUPPORTED); /* It will be implemented later. */ break; @@ -657,7 +660,7 @@ static bool _draw_myapps_grid(struct _priv *priv) priv->app_list = get_app_list(); if (!priv->app_list) { - elm_object_part_text_set(priv->base, PART_NO_CONTENTS, + elm_object_part_text_set(priv->base, PART_CONTENTS_TEXT, STR_NO_CONTENTS); return true; }