rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=f0794e91ccd9dd2fb754b857b0c36f4820e9f1c3

commit f0794e91ccd9dd2fb754b857b0c36f4820e9f1c3
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 6 14:42:23 2016 +0000

    live_widget_common: allow send_signal for most widgets and layouts
    
    Some other widgets require different way of signal sending
---
 src/bin/ui/live_view/elementary/live_widget_common.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/bin/ui/live_view/elementary/live_widget_common.c 
b/src/bin/ui/live_view/elementary/live_widget_common.c
index ea8e9bb..8c0f937 100644
--- a/src/bin/ui/live_view/elementary/live_widget_common.c
+++ b/src/bin/ui/live_view/elementary/live_widget_common.c
@@ -148,18 +148,15 @@ on_text_check(void *data,
 
 void
 send_signal(void *data,
-             Evas_Object *obj,
-             void *ei __UNUSED__)
+             Evas_Object *obj __UNUSED__,
+             void *ei)
 {
+   Demo_Signal *sig = (Demo_Signal *)ei;
    Evas_Object *object = (Evas_Object *)data;
 
-   assert(data != NULL);
+   assert(sig != NULL);
+   assert(sig->sig_name != NULL);
+   assert(sig->source_name != NULL);
 
-   const char *name = evas_object_data_get(obj, SIGNAL_NAME);
-   const char *source = evas_object_data_get(obj, SIGNAL_SOURCE);
-
-   assert(name != NULL);
-   assert(source != NULL);
-
-   elm_layout_signal_emit(object, name, source);
+   elm_layout_signal_emit(object, sig->sig_name, sig->source_name);
 }

-- 


Reply via email to