From e493f2efb5ecd427f6f4416422ec41cbd34f42c1 Mon Sep 17 00:00:00 2001 From: shilpa singh Date: Thu, 15 Mar 2012 15:17:54 +0530 Subject: [PATCH] [Issue fix]: background not deleted even when selector was deleted. --- src/lib/elm_colorselector.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c index c605ddb..00b533d 100644 --- a/src/lib/elm_colorselector.c +++ b/src/lib/elm_colorselector.c @@ -1078,11 +1078,12 @@ elm_colorselector_add(Evas_Object *parent) _colors_load_apply(obj); /* load background edj */ - 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; + 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); + elm_widget_sub_object_add(obj, wd->sel); + wd->mode = ELM_COLORSELECTOR_BOTH; wd->er = 255; wd->eg = 0; wd->eb = 0; -- 2.7.4