summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-04-25 19:06:09 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-04-25 19:06:09 +0000
commit5ef676c75a205536c6a207d37ee09819e688d61f (patch)
tree01013f472f5a6c89f02a81d332a7513721d73bcb /src/bin
parent8e2ec6390616ac1e7f6546df2994b70c4c9f4f09 (diff)
add anchor,clicked to test to prove continued brokenness of anchors
SVN revision: 70477
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_entry_anchor2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/test_entry_anchor2.c b/src/bin/test_entry_anchor2.c
index 63982f8f1..8504df472 100644
--- a/src/bin/test_entry_anchor2.c
+++ b/src/bin/test_entry_anchor2.c
@@ -11,6 +11,12 @@ my_entry_anchor_bt(void *data, Evas_Object *obj __UNUSED__, void *event_info __U
11} 11}
12 12
13static void 13static void
14anchor_click(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Elm_Entry_Anchor_Info *ev)
15{
16 printf("anchor click %d: '%s' (%d, %d)\n", ev->button, ev->name, ev->x, ev->y);
17}
18
19static void
14my_anchorview_anchor(void *data, Evas_Object *obj, void *event_info) 20my_anchorview_anchor(void *data, Evas_Object *obj, void *event_info)
15{ 21{
16 Evas_Object *av = data; 22 Evas_Object *av = data;
@@ -91,6 +97,7 @@ test_entry_anchor2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
91 "to refer to them this way. <item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>"); 97 "to refer to them this way. <item relsize=16x16 vsize=full href=emoticon/guilty-smile></item>");
92 evas_object_size_hint_weight_set(av, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 98 evas_object_size_hint_weight_set(av, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
93 evas_object_smart_callback_add(av, "anchor,hover,opened", my_anchorview_anchor, av); 99 evas_object_smart_callback_add(av, "anchor,hover,opened", my_anchorview_anchor, av);
100 evas_object_smart_callback_add(av, "anchor,clicked", (Evas_Smart_Cb)anchor_click, av);
94 elm_win_resize_object_add(win, av); 101 elm_win_resize_object_add(win, av);
95 evas_object_show(av); 102 evas_object_show(av);
96 103