summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.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_dayselector.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_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index 48f84fe..8cbfb47 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -123,17 +123,17 @@ _item_location_get(Elm_Dayselector_Data *sd,
123 ELM_DAYSELECTOR_MAX; 123 ELM_DAYSELECTOR_MAX;
124} 124}
125 125
126EOLIAN static Eina_Bool 126EOLIAN static Elm_Theme_Apply
127_elm_dayselector_elm_widget_theme_apply(Eo *obj, Elm_Dayselector_Data *sd) 127_elm_dayselector_elm_widget_theme_apply(Eo *obj, Elm_Dayselector_Data *sd)
128{ 128{
129 Eina_Bool int_ret = EINA_FALSE; 129 Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
130 130
131 Eina_List *l; 131 Eina_List *l;
132 char buf[1024]; 132 char buf[1024];
133 Elm_Dayselector_Item_Data *it; 133 Elm_Dayselector_Item_Data *it;
134 134
135 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS)); 135 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS));
136 if (!int_ret) return EINA_FALSE; 136 if (!int_ret) return ELM_THEME_APPLY_FAILED;
137 137
138 EINA_LIST_FOREACH(sd->items, l, it) 138 EINA_LIST_FOREACH(sd->items, l, it)
139 { 139 {
@@ -149,7 +149,7 @@ _elm_dayselector_elm_widget_theme_apply(Eo *obj, Elm_Dayselector_Data *sd)
149 _update_items(obj); 149 _update_items(obj);
150 elm_layout_sizing_eval(obj); 150 elm_layout_sizing_eval(obj);
151 151
152 return EINA_TRUE; 152 return int_ret;
153} 153}
154 154
155static void 155static void