aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_multibuttonentry.c
diff options
context:
space:
mode:
authorShilpa Singh <shilpa.singh@samsung.com>2015-10-30 06:26:31 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-10-30 07:05:12 +0100
commitffaee8f59908bcefc19abacb322f2bad2c802e76 (patch)
treed30527a232c77d610173a7eb6e48399cb58ae064 /legacy/elementary/src/bin/test_multibuttonentry.c
parenthoversel: remove scrollable_set/get() API (diff)
downloadefl-ffaee8f59908bcefc19abacb322f2bad2c802e76.tar.gz
multibuttonentry: when item is clicked/selected, select function not called issue fix.
Summary: The select function set in item_append does not get called on item selection issue fix. As per documentation, the function has to get called. @fix Test Plan: elementary_test is updated with the demo Reviewers: navnbeet, Hermet, CHAN, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3158 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_multibuttonentry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_multibuttonentry.c b/legacy/elementary/src/bin/test_multibuttonentry.c
index 98000db0e5..f66fc8c3fb 100644
--- a/legacy/elementary/src/bin/test_multibuttonentry.c
+++ b/legacy/elementary/src/bin/test_multibuttonentry.c
@@ -171,6 +171,13 @@ _format_change_btn_add(Evas_Object *mbe)
return btn;
}
+void
+_select_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
+{
+ Elm_Object_Item *it = (Elm_Object_Item *)event_info;
+ printf("select function called, item = %s\n", elm_object_item_text_get(it));
+}
+
static Evas_Object*
_add_multibuttonentry(Evas_Object *parent)
{
@@ -190,6 +197,7 @@ _add_multibuttonentry(Evas_Object *parent)
evas_object_size_hint_weight_set(mbe, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(mbe, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_content_set(scr, mbe);
+ elm_multibuttonentry_item_append(mbe, "mbe", _select_cb, NULL);
// Add item verify callback to Multibuttonentry
elm_multibuttonentry_item_filter_append(mbe, _item_filter_cb, data);