doc: improve colorselector preview
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 3 Oct 2019 12:01:35 +0000 (14:01 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 3 Oct 2019 21:10:11 +0000 (06:10 +0900)
Summary:
this has always been broken, it was just never noticed because colorselector
was broken

@fix

ref T8304

Reviewers: segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8304

Differential Revision: https://phab.enlightenment.org/D10278

doc/widgets/widget_preview_colorselector.c

index 784a2d6..48b3dac 100644 (file)
@@ -8,6 +8,7 @@ evas_object_show(bx);
 Evas_Object *o = elm_colorselector_add(win);
 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);;
+elm_colorselector_palette_item_selected_set(eina_list_data_get(elm_colorselector_palette_items_get(o)), EINA_TRUE);
 elm_box_pack_end(bx, o);
 evas_object_show(o);