summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ui_active_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_ui_active_view.c')
-rw-r--r--src/bin/elementary/test_ui_active_view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/elementary/test_ui_active_view.c b/src/bin/elementary/test_ui_active_view.c
index 38a79ea831..b417d9b7fc 100644
--- a/src/bin/elementary/test_ui_active_view.c
+++ b/src/bin/elementary/test_ui_active_view.c
@@ -58,6 +58,12 @@ typedef struct _Size_Params
#define PAGE_NUM 3
+static void
+page_clicked_cb(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
+{
+ printf("Button Page is clicked!\n");
+}
+
static Eo *
view_add(View_Type p, Eo *parent)
{
@@ -95,6 +101,7 @@ view_add(View_Type p, Eo *parent)
case BUTTON:
page = efl_add(EFL_UI_BUTTON_CLASS, parent,
efl_text_set(efl_added, "Button Page"));
+ efl_event_callback_add(page, EFL_UI_EVENT_CLICKED, page_clicked_cb, NULL);
efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;