aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-04-27 13:43:37 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-04-27 13:54:37 +0900
commit535fe6bd974532e771caf5e0ed801f969a2a53cb (patch)
treeaf92110ab83fb497ecae490daf67e52687e9f26a /legacy/elementary/src/bin
parentgengrid: removed unnecessary return value check. (diff)
downloadefl-535fe6bd974532e771caf5e0ed801f969a2a53cb.tar.gz
gengrid: Added elm_gengrid_wheel_disabled_set/get() APIs.
Summary: The basic idea is from Abhinandan Aryadipta and I implemented this in upstream. Special thanks to JackDanielZ for eolian madness. @feature Reviewers: JackDanielZ Differential Revision: https://phab.enlightenment.org/D803
Diffstat (limited to 'legacy/elementary/src/bin')
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index 1f02d322a0..3beb6dc15f 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -298,6 +298,12 @@ multi_select_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
}
static void
+wheel_disable_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
+{
+ elm_gengrid_wheel_disabled_set(data, elm_check_state_get(obj));
+}
+
+static void
clear_bt_clicked(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
api_data *api = data;
@@ -541,6 +547,15 @@ test_gengrid(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
elm_box_pack_end(bx, ck);
evas_object_show(ck);
+ ck = elm_check_add(win);
+ evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_object_text_set(ck, "Wheel Disable");
+ evas_object_smart_callback_add(ck, "changed", wheel_disable_cb,
+ api->grid);
+ elm_box_pack_end(bx, ck);
+ evas_object_show(ck);
+
/* Gengrid Options 2 */
bx = elm_box_add(win);
elm_box_horizontal_set(bx, EINA_TRUE);