aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_layout.c
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
commitc263d9c4d6b3a203c3ec009517530e53248ee24f (patch)
treeaa48eb4066c2c0a1ebe8de4e94f9f36053699c6e /legacy/elementary/src/bin/test_layout.c
parentprefs: Add EVIL_LIBS to build to avoid problems with missing regex.h under mingw (diff)
downloadefl-c263d9c4d6b3a203c3ec009517530e53248ee24f.tar.gz
add test cb to listen to all signals on layout obj
Diffstat (limited to 'legacy/elementary/src/bin/test_layout.c')
-rw-r--r--legacy/elementary/src/bin/test_layout.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_layout.c b/legacy/elementary/src/bin/test_layout.c
index 4204bf5066..7b33cb4b9e 100644
--- a/legacy/elementary/src/bin/test_layout.c
+++ b/legacy/elementary/src/bin/test_layout.c
@@ -34,6 +34,12 @@ _clicked_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
elm_object_part_text_set(data, "text", elm_object_text_get(obj));
}
+static void
+_cb_signal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source)
+{
+ printf("signal: '%s' '%s'\n", emission, source);
+}
+
void
test_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
@@ -77,6 +83,8 @@ test_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
elm_box_pack_end(box, ly);
//elm_win_resize_object_add(win, ly);
evas_object_show(ly);
+
+ elm_layout_signal_callback_add(ly, "*", "*", _cb_signal, NULL);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 1");