summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_clock.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_clock.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_clock.c')
-rw-r--r--src/lib/elementary/elm_clock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_clock.c b/src/lib/elementary/elm_clock.c
index 23e2a04..838269d 100644
--- a/src/lib/elementary/elm_clock.c
+++ b/src/lib/elementary/elm_clock.c
@@ -560,17 +560,17 @@ _time_update(Evas_Object *obj, Eina_Bool theme_update)
560 sd->cur.ampm = -1; 560 sd->cur.ampm = -1;
561} 561}
562 562
563EOLIAN static Eina_Bool 563EOLIAN static Elm_Theme_Apply
564_elm_clock_elm_widget_theme_apply(Eo *obj, Elm_Clock_Data *sd EINA_UNUSED) 564_elm_clock_elm_widget_theme_apply(Eo *obj, Elm_Clock_Data *sd EINA_UNUSED)
565{ 565{
566 Eina_Bool int_ret = EINA_FALSE; 566 Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
567 567
568 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS)); 568 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS));
569 if (!int_ret) return EINA_FALSE; 569 if (!int_ret) return ELM_THEME_APPLY_FAILED;
570 570
571 _time_update(obj, EINA_TRUE); 571 _time_update(obj, EINA_TRUE);
572 572
573 return EINA_TRUE; 573 return int_ret;
574} 574}
575 575
576static Eina_Bool 576static Eina_Bool