summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2016-07-03 16:57:23 +0000
committerDaniel Hirt <daniel.hirt@samsung.com>2016-07-03 17:10:57 +0000
commitf13b5aebc81abb26af4478c8743011e0bbcaba3c (patch)
tree2e24d9ff4ec8d87d7c0c19df18652ff2b0a7f4fc /src
parentfed2b7578031d7ab80cac02d4f00636f9d058a1a (diff)
Ui text: port changed_cb from entry
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_ui_text.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 87c51f9..3f071b6 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -2313,7 +2313,7 @@ _entry_changed_handle(void *data,
2313 _delay_write, data); 2313 _delay_write, data);
2314 2314
2315 _return_key_enabled_check(data); 2315 _return_key_enabled_check(data);
2316 text = edje_object_part_text_get(sd->entry_edje, "elm.text"); 2316 text = efl_text_get(data);
2317 if (text) 2317 if (text)
2318 { 2318 {
2319 if (text[0]) 2319 if (text[0])
@@ -2330,15 +2330,6 @@ _entry_changed_handle(void *data,
2330} 2330}
2331 2331
2332static void 2332static void
2333_entry_changed_signal_cb(void *data,
2334 Evas_Object *obj EINA_UNUSED,
2335 const char *emission EINA_UNUSED,
2336 const char *source EINA_UNUSED)
2337{
2338 _entry_changed_handle(data, EFL_UI_TEXT_EVENT_CHANGED);
2339}
2340
2341static void
2342_entry_changed_user_signal_cb(void *data, 2333_entry_changed_user_signal_cb(void *data,
2343 Evas_Object *obj EINA_UNUSED, 2334 Evas_Object *obj EINA_UNUSED,
2344 const char *emission EINA_UNUSED, 2335 const char *emission EINA_UNUSED,
@@ -3821,9 +3812,6 @@ _efl_ui_text_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Text_Data *priv)
3821 evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, _resize_cb, obj); 3812 evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, _resize_cb, obj);
3822 3813
3823 edje_object_signal_callback_add 3814 edje_object_signal_callback_add
3824 (priv->entry_edje, "entry,changed", "elm.text",
3825 _entry_changed_signal_cb, obj);
3826 edje_object_signal_callback_add
3827 (priv->entry_edje, "entry,changed,user", "elm.text", 3815 (priv->entry_edje, "entry,changed,user", "elm.text",
3828 _entry_changed_user_signal_cb, obj); 3816 _entry_changed_user_signal_cb, obj);
3829 edje_object_signal_callback_add 3817 edje_object_signal_callback_add
@@ -5997,6 +5985,7 @@ static void
5997_efl_ui_text_changed_cb(void *data, const Eo_Event *event EINA_UNUSED) 5985_efl_ui_text_changed_cb(void *data, const Eo_Event *event EINA_UNUSED)
5998{ 5986{
5999 _decoration_defer_all(data); 5987 _decoration_defer_all(data);
5988 _entry_changed_handle(data, EFL_UI_TEXT_EVENT_CHANGED);
6000} 5989}
6001 5990
6002static void 5991static void