summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorShilpa Singh <shilpa.singh@samsung.com>2014-02-08 13:33:58 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-08 13:33:58 +0900
commit68f2f6e7f2a8fc432d2b1e455839022f20e71e34 (patch)
tree593ecf1bdff5a332e4271aa43890e435146c16d7 /src/bin
parentf15b796dc330aef45c4dca27659239b8f76b24c0 (diff)
Colorselector: Item Selection/Unselection logic changes and corresponding API additions.
SUMMARY Item should remain selected once pressed. When one item is selected other items should be unselected. No special behavior on long press, item gets selected on mouse up. APIs added are to get current selected item and to programmatically control the selection/unselection of an item. This is patch D515 (had to do by hand).
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_colorselector.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/test_colorselector.c b/src/bin/test_colorselector.c
index 411d7a037..59476326c 100644
--- a/src/bin/test_colorselector.c
+++ b/src/bin/test_colorselector.c
@@ -84,6 +84,7 @@ test_colorselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
84 const Eina_List *item_list, *last_item_list; 84 const Eina_List *item_list, *last_item_list;
85 Elm_Object_Item *color_item; 85 Elm_Object_Item *color_item;
86 int r, g, b, a; 86 int r, g, b, a;
87 Elm_Object_Item *item;
87 88
88 win = elm_win_util_standard_add("colorselector", "ColorSelector"); 89 win = elm_win_util_standard_add("colorselector", "ColorSelector");
89 elm_win_autodel_set(win, EINA_TRUE); 90 elm_win_autodel_set(win, EINA_TRUE);
@@ -113,7 +114,9 @@ test_colorselector(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
113 evas_object_show(fr); 114 evas_object_show(fr);
114 115
115 cs = elm_colorselector_add(fr); 116 cs = elm_colorselector_add(fr);
116 elm_colorselector_palette_color_add(cs, 255, 90, 18, 128); 117 item = elm_colorselector_palette_color_add(cs, 255, 90, 18, 128);
118 elm_colorselector_palette_item_selected_set(item, EINA_TRUE);
119
117 elm_colorselector_palette_color_add(cs, 255, 213, 0, 255); 120 elm_colorselector_palette_color_add(cs, 255, 213, 0, 255);
118 elm_colorselector_palette_color_add(cs, 146, 255, 11, 255); 121 elm_colorselector_palette_color_add(cs, 146, 255, 11, 255);
119 elm_colorselector_palette_color_add(cs, 9, 186, 10, 255); 122 elm_colorselector_palette_color_add(cs, 9, 186, 10, 255);