diff options
author | Jaeun Choi <jaeun12.choi@samsung.com> | 2015-03-24 17:17:20 +0900 |
---|---|---|
committer | Jaeun Choi <jaeun12.choi@samsung.com> | 2015-04-21 16:42:48 +0900 |
commit | 4093bc7decb9059d113e326967e5872cefe28e3e (patch) | |
tree | 5129a49946a5b94e6952ee7ea0107d863a339f38 /src/colorselector.c | |
parent | 5d8ef1832134cab01b9c48d108522906d34b90ed (diff) | |
download | elm-demo-tizen-mobile-e7aa42f0a37dab4ece1b531753b1f7de315683d6.tar.gz elm-demo-tizen-mobile-e7aa42f0a37dab4ece1b531753b1f7de315683d6.tar.bz2 elm-demo-tizen-mobile-e7aa42f0a37dab4ece1b531753b1f7de315683d6.zip |
initialize demo code in mobileHEADsubmit/trunk/20150427.055159submit/trunk/20150427.045332submit/tizen/20150428.023439accepted/tizen/mobile/20150428.090753master
Change-Id: I00f8cac09843901368365a6448a3ef2fce4977c9
Diffstat (limited to 'src/colorselector.c')
-rw-r--r-- | src/colorselector.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/colorselector.c b/src/colorselector.c new file mode 100644 index 0000000..e9a187b --- /dev/null +++ b/src/colorselector.c @@ -0,0 +1,21 @@ +#include "main.h" +#include "util.h" + + +Evas_Object *colorselector_cb(void *data) +{ + Evas_Object *wbox, *colorselector; + appdata *ad = data; + + wbox = ad->widget_box; + + colorselector = elm_colorselector_add(wbox); + elm_colorselector_mode_set(colorselector, ELM_COLORSELECTOR_PALETTE); + evas_object_size_hint_align_set(colorselector, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(colorselector, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + + evas_object_show(colorselector); + elm_box_pack_end(wbox, colorselector); + + return colorselector; +} |