summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-24 19:40:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-03-24 19:53:18 +0900
commit82dc94738bfddc23b95ac6c05af0879059ff2c49 (patch)
tree467131ae917f33fcf0c11b1f9f95d5da6836c430
parent2fc2b3a217e5479c9ee6c4484c629023bec3efec (diff)
add test cb to listen to all signals on layout obj
-rw-r--r--src/bin/test_layout.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/test_layout.c b/src/bin/test_layout.c
index 4204bf506..7b33cb4b9 100644
--- a/src/bin/test_layout.c
+++ b/src/bin/test_layout.c
@@ -34,6 +34,12 @@ _clicked_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
34 elm_object_part_text_set(data, "text", elm_object_text_get(obj)); 34 elm_object_part_text_set(data, "text", elm_object_text_get(obj));
35} 35}
36 36
37static void
38_cb_signal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source)
39{
40 printf("signal: '%s' '%s'\n", emission, source);
41}
42
37void 43void
38test_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 44test_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
39{ 45{
@@ -77,6 +83,8 @@ test_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
77 elm_box_pack_end(box, ly); 83 elm_box_pack_end(box, ly);
78 //elm_win_resize_object_add(win, ly); 84 //elm_win_resize_object_add(win, ly);
79 evas_object_show(ly); 85 evas_object_show(ly);
86
87 elm_layout_signal_callback_add(ly, "*", "*", _cb_signal, NULL);
80 88
81 bt = elm_button_add(win); 89 bt = elm_button_add(win);
82 elm_object_text_set(bt, "Button 1"); 90 elm_object_text_set(bt, "Button 1");