path: root/src/lib/edje/edje_util.c
diff options
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-29 15:34:52 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-29 15:36:44 +0900
commit8faa65d90b5e148b30ffa7c589f7ff7bc14026f7 (patch)
tree0a4f98e340fc3741b1c424abde53627e6f06c20e /src/lib/edje/edje_util.c
parentedje: Move "preload" to legacy only (diff)
edje: Move text_change_cb to legacy only
This should probably be replaced by a well defined signal. Note: If edje sends signals on swallow/unswallow and text set/unset we could simplify some of the elementary code, eg. for button's icon handling. The theme should be handling the padding automatically, it's not the elementary widget's role Ref https://phab.enlightenment.org/T5315
Diffstat (limited to '')
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index d26774bd92..f1b00c7eb4 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -1916,12 +1916,14 @@ _edje_object_item_provider_set(Eo *obj EINA_UNUSED, Edje *ed, Edje_Item_Provider
ed->item_provider.data = data;
-/* FIXDOC: New Function */
-EOLIAN void
-_edje_object_text_change_cb_set(Eo *obj EINA_UNUSED, Edje *ed, Edje_Text_Change_Cb func, void *data)
+EAPI void
+edje_object_text_change_cb_set(Eo *obj, Edje_Text_Change_Cb func, void *data)
unsigned short i;
+ Edje *ed;
+ ed = _edje_fetch(obj);
+ if (!ed) return;
ed->text_change.func = func;
ed->text_change.data = data;