Colorselector: Palette_items_get API added.
authorShilpa Singh <shilpa.singh@samsung.com>
Fri, 7 Feb 2014 14:30:01 +0000 (23:30 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 7 Feb 2014 14:35:13 +0000 (23:35 +0900)
commitcd9507ed6004044c57f164b151ea6bf43d25da2f
tree9f5c829252952e021067c07fea27cb63ac74e124
parent3902d1697e7111b5bbc327c789b8828a59653623
Colorselector: Palette_items_get API added.

Summary:
Summary:
Issue:Colorselector adds default palette items by reading colors
from config, application do not have any way to get that color list.
Solution: API added to get the palette's item list.
Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)

Test Plan:
Test Plan: Create a list pointer and call palette_items_get API to get
the list of color items. Change the color of any item to confirm
whether the list has been returned correctly.

Eina_List *list = elm_colorselector_palette_items_get(cs);
Eina_List *list2 = eina_list_last(list);
Elm_Object_Item *color_item = eina_list_data_get(list2);
elm_colorselector_palette_item_color_set(color_item, 0, 0, 0, 255);

Reviewers: seoz, Hermet, raster

CC: govi, myoungwoon
Differential Revision: https://phab.enlightenment.org/D503
src/bin/test_colorselector.c
src/lib/elm_colorselector.c
src/lib/elm_colorselector_eo.h
src/lib/elm_colorselector_legacy.h