elementary/colorselector -
Attached to the mail is a patch for fixing issues 1. "bg edje object not deleted on deleting colorselector" 2. Theme hook fixed to read data items. Existing Issue: bg edje object of colorselector not deleted and data items not read again on theme hook. Change Description: 1. elm_colorselector's edje object not deleted issue fix. 2. Theme hook updated to read data items again. Signed-Off-By : ShilpaOnkar Singh <shilpa.singh@samsung.com> SVN revision: 69459
This commit is contained in:
parent
c95d02c070
commit
6b67fd1aba
|
@ -128,6 +128,9 @@ _theme_hook(Evas_Object *obj)
|
|||
Eina_List *elist;
|
||||
Elm_Color_Item *item;
|
||||
int i;
|
||||
const char *hpadstr, *vpadstr;
|
||||
unsigned int h_pad = DEFAULT_HOR_PAD;
|
||||
unsigned int v_pad = DEFAULT_VER_PAD;
|
||||
|
||||
if ((!wd) || (!wd->sel)) return;
|
||||
|
||||
|
@ -135,6 +138,11 @@ _theme_hook(Evas_Object *obj)
|
|||
elm_widget_style_get(obj));
|
||||
_elm_theme_object_set(obj, wd->sel, "colorselector", "bg",
|
||||
elm_widget_style_get(obj));
|
||||
hpadstr = edje_object_data_get(wd->base, "horizontal_pad");
|
||||
if (hpadstr) h_pad = atoi(hpadstr);
|
||||
vpadstr = edje_object_data_get(wd->base, "vertical_pad");
|
||||
if (vpadstr) v_pad = atoi(vpadstr);
|
||||
elm_box_padding_set(wd->box, h_pad, v_pad);
|
||||
EINA_LIST_FOREACH(wd->items, elist, item)
|
||||
{
|
||||
elm_layout_theme_set(VIEW(item), "colorselector", "item", elm_widget_style_get(obj));
|
||||
|
@ -1057,9 +1065,9 @@ elm_colorselector_add(Evas_Object *parent)
|
|||
0);
|
||||
evas_object_size_hint_align_set(wd->box, EVAS_HINT_FILL, 0);
|
||||
elm_box_homogeneous_set(wd->box, EINA_TRUE);
|
||||
hpadstr = edje_object_data_get(wd->sel, "horizontal_pad");
|
||||
hpadstr = edje_object_data_get(wd->base, "horizontal_pad");
|
||||
if (hpadstr) h_pad = atoi(hpadstr);
|
||||
vpadstr = edje_object_data_get(wd->sel, "vertical_pad");
|
||||
vpadstr = edje_object_data_get(wd->base, "vertical_pad");
|
||||
if (vpadstr) v_pad = atoi(vpadstr);
|
||||
elm_box_padding_set(wd->box, h_pad, v_pad);
|
||||
elm_box_align_set(wd->box, 0.5, 0.5);
|
||||
|
@ -1073,8 +1081,9 @@ elm_colorselector_add(Evas_Object *parent)
|
|||
wd->sel = edje_object_add(e);
|
||||
_elm_theme_object_set(obj, wd->sel, "colorselector", "bg", "default");
|
||||
edje_object_part_swallow(wd->base, "selector", wd->sel);
|
||||
wd->mode = ELM_COLORSELECTOR_BOTH;
|
||||
elm_widget_sub_object_add(obj, wd->sel);
|
||||
|
||||
wd->mode = ELM_COLORSELECTOR_BOTH;
|
||||
wd->er = 255;
|
||||
wd->eg = 0;
|
||||
wd->eb = 0;
|
||||
|
|
Loading…
Reference in New Issue