diff options
author | Hyojung Jo <hj903.jo@samsung.com> | 2015-12-15 14:40:07 +0900 |
---|---|---|
committer | Hyojung Jo <hj903.jo@samsung.com> | 2015-12-15 14:40:07 +0900 |
commit | 402351a84fdec57e34836553889a80d24d097caa (patch) | |
tree | 74bec41a976b5d21d7256eeb5ebff88eb60fd1fa /src/common/utils.c | |
parent | dd542ec274b6bb3b2598815e25ee7b4db8729d52 (diff) | |
download | air_favorite-accepted/tizen_3.0_tv.tar.gz air_favorite-accepted/tizen_3.0_tv.tar.bz2 air_favorite-accepted/tizen_3.0_tv.zip |
Apply multiscaletizen_4.0.m1_releasesubmit/tizen_unified/20170309.100417submit/tizen_unified/20170308.100418submit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.100009submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0.m2/20170104.093756submit/tizen/20151224.041445submit/tizen/20151217.024340submit/tizen/20151216.000755submit/tizen/20151215.050651accepted/tizen/unified/20170309.074752accepted/tizen/tv/20151224.064329accepted/tizen/tv/20151217.093046accepted/tizen/tv/20151216.052406accepted/tizen/4.0/unified/20170828.223159accepted/tizen/4.0/unified/20170816.014221accepted/tizen/3.0/tv/20161016.005445accepted/tizen/3.0.m2/tv/20170105.030126tizen_4.0tizen_3.0_tvtizen_3.0.m2tizen_3.0accepted/tizen_unifiedaccepted/tizen_tvaccepted/tizen_4.0_unifiedaccepted/tizen_3.0_tvaccepted/tizen_3.0.m2_tv
Change-Id: I39029bd04c7eac0e422e129a5351b63d3645c855
Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
Diffstat (limited to 'src/common/utils.c')
-rw-r--r-- | src/common/utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/utils.c b/src/common/utils.c index 39628ed..9552034 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -96,8 +96,8 @@ Evas_Object *utils_add_gengrid(Evas_Object *parent, elm_gengrid_horizontal_set(grid, EINA_TRUE); elm_gengrid_align_set(grid, 0.0, 0.0); elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_ALWAYS); - elm_gengrid_item_size_set(grid, elm_config_scale_get() * item_size_x, - elm_config_scale_get() * item_size_y); + elm_gengrid_item_size_set(grid, ELM_SCALE_SIZE(item_size_x), + ELM_SCALE_SIZE(item_size_y)); elm_scroller_policy_set(grid, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); @@ -122,7 +122,8 @@ Evas_Object *utils_add_box(Evas_Object *parent, const char *part, } elm_box_horizontal_set(box, horizontal); - elm_box_padding_set(box, padding_h, padding_v); + elm_box_padding_set(box, ELM_SCALE_SIZE(padding_h), + ELM_SCALE_SIZE(padding_v)); evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -180,7 +181,8 @@ Evas_Object *utils_add_table(Evas_Object *parent, const char *part, return NULL; } - elm_table_padding_set(table, padding_x, padding_y); + elm_table_padding_set(table, ELM_SCALE_SIZE(padding_x), + ELM_SCALE_SIZE(padding_y)); evas_object_show(table); if (part) |