summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_ctxpopup.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/elc_ctxpopup.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/elc_ctxpopup.c')
-rw-r--r--src/lib/elementary/elc_ctxpopup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c
index 7d3a8b9..29cc142 100644
--- a/src/lib/elementary/elc_ctxpopup.c
+++ b/src/lib/elementary/elc_ctxpopup.c
@@ -745,13 +745,13 @@ _on_content_resized(void *data,
745} 745}
746 746
747//FIXME: lost the content size when theme hook is called. 747//FIXME: lost the content size when theme hook is called.
748EOLIAN static Eina_Bool 748EOLIAN static Elm_Theme_Apply
749_elm_ctxpopup_elm_widget_theme_apply(Eo *obj, Elm_Ctxpopup_Data *sd) 749_elm_ctxpopup_elm_widget_theme_apply(Eo *obj, Elm_Ctxpopup_Data *sd)
750{ 750{
751 Eina_Bool int_ret = EINA_FALSE; 751 Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
752 752
753 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS)); 753 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS));
754 if (!int_ret) return EINA_FALSE; 754 if (!int_ret) return ELM_THEME_APPLY_FAILED;
755 755
756 elm_widget_theme_object_set 756 elm_widget_theme_object_set
757 (obj, sd->bg, "ctxpopup", "bg", elm_widget_style_get(obj)); 757 (obj, sd->bg, "ctxpopup", "bg", elm_widget_style_get(obj));
@@ -770,7 +770,7 @@ _elm_ctxpopup_elm_widget_theme_apply(Eo *obj, Elm_Ctxpopup_Data *sd)
770 770
771 if (sd->visible) elm_layout_sizing_eval(obj); 771 if (sd->visible) elm_layout_sizing_eval(obj);
772 772
773 return EINA_TRUE; 773 return int_ret;
774} 774}
775 775
776/* kind of a big and tricky override here: an internal box will hold 776/* kind of a big and tricky override here: an internal box will hold