aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_layout.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2010-10-27 16:58:35 +0000
committerIván Briano <sachieru@gmail.com>2010-10-27 16:58:35 +0000
commit51856aac90e2f66184f319de49392075b031085e (patch)
tree29727040b8c8bd30d97af9c571bd336a407398d8 /legacy/elementary/src/bin/test_layout.c
parentlist, genlist and gengrid, if no item is selected (diff)
downloadefl-51856aac90e2f66184f319de49392075b031085e.tar.gz
Adding text_set/get to elm_layout.
SVN revision: 53925
Diffstat (limited to 'legacy/elementary/src/bin/test_layout.c')
-rw-r--r--legacy/elementary/src/bin/test_layout.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_layout.c b/legacy/elementary/src/bin/test_layout.c
index 1a0a0468dd..05bf3d710d 100644
--- a/legacy/elementary/src/bin/test_layout.c
+++ b/legacy/elementary/src/bin/test_layout.c
@@ -4,6 +4,13 @@
#endif
#ifndef ELM_LIB_QUICKLAUNCH
#include <Elementary_Cursor.h>
+
+static void
+_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
+{
+ elm_layout_text_set(data, "text", elm_button_label_get(obj));
+}
+
void
test_layout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
@@ -29,16 +36,19 @@ test_layout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
bt = elm_button_add(win);
elm_button_label_set(bt, "Button 1");
elm_layout_content_set(ly, "element1", bt);
+ evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
bt = elm_button_add(win);
elm_button_label_set(bt, "Button 2");
elm_layout_content_set(ly, "element2", bt);
+ evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
bt = elm_button_add(win);
elm_button_label_set(bt, "Button 3");
elm_layout_content_set(ly, "element3", bt);
+ evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
elm_layout_part_cursor_set(ly, "text", ELM_CURSOR_WATCH);