summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_route.c
diff options
context:
space:
mode:
authorJinyong Park <j4939.park@samsung.com>2016-07-01 15:09:42 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-01 15:09:43 +0900
commit3271ec8d18f715299dbf693c06d94cf08f2c8dc7 (patch)
treea62dfde2515e629297adc4fdab02299652f7d065 /src/lib/elementary/elm_route.c
parent1c358205d05689c8c141e76c009ea1c3cbc2acf1 (diff)
theme: return enum from elm_widget_style_set instead of bool
Summary: if trying to apply incorrect theme, widget apply default theme and return TRUE. so there is no way to check it really apply correct theme. To resolve this problem, _elm_theme_set return three type enum * related history : 4ca3ef45146e05908a13d1010909abeba9693ad6 * elm_object_style_set is public api, so I didn't change it. * typedef name [ Theme_Apply ] is temporarily, please suggest better one. @fix Reviewers: singh.amitesh, herb, Hermet, cedric, jpeg, raster Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4073
Diffstat (limited to 'src/lib/elementary/elm_route.c')
-rw-r--r--src/lib/elementary/elm_route.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_route.c b/src/lib/elementary/elm_route.c
index 85a2073..7ce7ad6 100644
--- a/src/lib/elementary/elm_route.c
+++ b/src/lib/elementary/elm_route.c
@@ -86,18 +86,18 @@ _move_resize_cb(void *data EINA_UNUSED,
86 _sizing_eval(obj); 86 _sizing_eval(obj);
87} 87}
88 88
89EOLIAN static Eina_Bool 89EOLIAN static Elm_Theme_Apply
90_elm_route_elm_widget_theme_apply(Eo *obj, Elm_Route_Data *sd EINA_UNUSED) 90_elm_route_elm_widget_theme_apply(Eo *obj, Elm_Route_Data *sd EINA_UNUSED)
91{ 91{
92 Eina_Bool int_ret = EINA_FALSE; 92 Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
93 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS)); 93 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS));
94 if (!int_ret) return EINA_FALSE; 94 if (!int_ret) return ELM_THEME_APPLY_FAILED;
95 95
96 //TODO 96 //TODO
97 97
98 _sizing_eval(obj); 98 _sizing_eval(obj);
99 99
100 return EINA_TRUE; 100 return int_ret;
101} 101}
102 102
103#ifdef ELM_EMAP 103#ifdef ELM_EMAP