summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-10-04 11:00:26 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-10-04 11:00:26 +0000
commit66a35e729c853c9f3fd8e4ab1ede08a03d7243e5 (patch)
tree3a0b073b97c94f3405da6e98058e038e36992f62
parent71a2df5af4c080e81349fe18ff35df188f41d3b2 (diff)
elm test_colorselector.c: Added PICKER mode for color selector.
SVN revision: 77426
-rw-r--r--src/bin/test_colorselector.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bin/test_colorselector.c b/src/bin/test_colorselector.c
index 37ba362cc..6af446f3d 100644
--- a/src/bin/test_colorselector.c
+++ b/src/bin/test_colorselector.c
@@ -71,6 +71,15 @@ _both_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
71 evas_object_resize(win, 320, 550); 71 evas_object_resize(win, 320, 550);
72} 72}
73 73
74static void
75_picker_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
76{
77 Evas_Object *cs = data;
78 Evas_Object *win = evas_object_data_get(cs, "win");
79 elm_colorselector_mode_set(cs, ELM_COLORSELECTOR_PICKER);
80 evas_object_resize(win, 320, 430);
81}
82
74void 83void
75test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, 84test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
76 void *event_info __UNUSED__) 85 void *event_info __UNUSED__)
@@ -174,6 +183,14 @@ test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
174 evas_object_show(bt); 183 evas_object_show(bt);
175 elm_box_pack_end(bx2, bt); 184 elm_box_pack_end(bx2, bt);
176 185
186 bt = elm_button_add(bx2);
187 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
188 evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
189 evas_object_smart_callback_add(bt, "clicked", _picker_cb, cs);
190 elm_object_text_set(bt, "Picker");
191 evas_object_show(bt);
192 elm_box_pack_end(bx2, bt);
193
177 evas_object_resize(win, 320, 550); 194 evas_object_resize(win, 320, 550);
178 evas_object_show(win); 195 evas_object_show(win);
179} 196}