From a42df068d0c1153c734f1f3f98a23a77f5db2d7f Mon Sep 17 00:00:00 2001 From: Subhransu Mohanty Date: Fri, 15 May 2015 16:43:19 +0900 Subject: [PATCH] elementary: check "vg_ux" for style name. Change-Id: Ifd358e6a1e2a9e52d7d39ee3980e91579135be4c --- src/lib/tizen_vector.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/lib/tizen_vector.c b/src/lib/tizen_vector.c index 9c75e07..11a3477 100644 --- a/src/lib/tizen_vector.c +++ b/src/lib/tizen_vector.c @@ -162,10 +162,9 @@ tizen_vg_radio_set(Elm_Radio *obj) vg_radio *vd = evas_object_data_get(obj, vg_key); if (vd) evas_object_del(vd->vg[0]); - //Apply vector ux only theme has "vector_ux" "on" + //Apply vector ux only theme has "vector_ux" const char *str = elm_layout_data_get(obj, "vector_ux"); if (!str) return; - if (strcmp(str, "on")) return; vd = calloc(1, sizeof(vg_radio)); if (!vd) @@ -1029,18 +1028,15 @@ tizen_vg_check_set(Elm_Check *obj) check_default *vd = evas_object_data_get(obj, vg_key); if (vd) evas_object_del(vd->vg[0]); - //Apply vector ux only theme has "vector_ux" "on" + //Apply vector ux only theme has "vector_ux" const char *str = elm_layout_data_get(obj, "vector_ux"); if (!str) return; - if (strcmp(str, "on")) return; - const char *style = elm_object_style_get(obj); - - if (!strcmp(style, "default")) + if (!strcmp(str, "default")) tizen_vg_check_default_set(obj); - else if (!strcmp(style, "on&off")) + else if (!strcmp(str, "on&off")) tizen_vg_check_onoff_set(obj); - else if (!strcmp(style, "favorite")) + else if (!strcmp(str, "favorite")) tizen_vg_check_favorite_set(obj); } @@ -1121,10 +1117,9 @@ tizen_vg_button_set(Elm_Button *obj) vg_button *vd = evas_object_data_get(obj, vg_key); if (vd) evas_object_del(vd->vg[0]); - //Apply vector ux only theme has "vector_ux" "on" + //Apply vector ux only theme has "vector_ux" const char *str = elm_layout_data_get(obj, "vector_ux"); if (!str) return; - if (strcmp(str, "on")) return; vd = calloc(1, sizeof(vg_button)); if (!vd) -- 2.7.4