aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_multibuttonentry.c
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2017-06-19 12:01:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-06-19 15:14:20 +0900
commitd6140f385417c629319418c471f27fe46aed428a (patch)
tree4ab599d7b33b0233d76c82d5934da80a214df31b /src/bin/elementary/test_multibuttonentry.c
parentmultibuttonentry: Fix expand state changed callback called many times. (diff)
downloadefl-d6140f385417c629319418c471f27fe46aed428a.tar.gz
test_multibuttonentry: Fix name of smart event for expand state changed.
Summary: There is no name of event for "shrink,state,changed" Reviewers: jpeg, cedric, woohyun Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4969
Diffstat (limited to 'src/bin/elementary/test_multibuttonentry.c')
-rw-r--r--src/bin/elementary/test_multibuttonentry.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/elementary/test_multibuttonentry.c b/src/bin/elementary/test_multibuttonentry.c
index cea77e8ad8..e4c3370908 100644
--- a/src/bin/elementary/test_multibuttonentry.c
+++ b/src/bin/elementary/test_multibuttonentry.c
@@ -113,11 +113,14 @@ _contracted_cb(void *data EINA_UNUSED,
// "contracted,state,changed" smart callback
static void
-_shrink_state_changed_cb(void *data EINA_UNUSED,
+_expand_state_changed_cb(void *data EINA_UNUSED,
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
- printf("contracted state changed! \n");
+ if (elm_multibuttonentry_expanded_get(obj))
+ printf("expand state changed: EXPANDED \n");
+ else
+ printf("expand state changed: SHRANK \n");
}
// "longpressed" smart callback
@@ -219,7 +222,7 @@ _add_multibuttonentry(Evas_Object *parent)
evas_object_smart_callback_add(mbe, "expanded", _expanded_cb, NULL);
evas_object_smart_callback_add(mbe, "contracted", _contracted_cb, NULL);
- evas_object_smart_callback_add(mbe, "shrink,state,changed", _shrink_state_changed_cb, NULL);
+ evas_object_smart_callback_add(mbe, "expand,state,changed", _expand_state_changed_cb, NULL);
evas_object_smart_callback_add(mbe, "item,longpressed", _longpressed_cb, NULL);
btn = _format_change_btn_add(mbe);
@@ -305,7 +308,7 @@ _add_multibuttonentry_shrink(Evas_Object *parent)
evas_object_smart_callback_add(mbe, "expanded", _expanded_cb, NULL);
evas_object_smart_callback_add(mbe, "contracted", _contracted_cb, NULL);
- evas_object_smart_callback_add(mbe, "shrink,state,changed", _shrink_state_changed_cb, NULL);
+ evas_object_smart_callback_add(mbe, "expand,state,changed", _expand_state_changed_cb, NULL);
evas_object_smart_callback_add(mbe, "item,longpressed", _longpressed_cb, NULL);
btn = _format_change_btn_add(mbe);