From 63b01101ee8b632ec651e3d1a9be06590b918fe4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 5 Mar 2014 10:53:05 -0500 Subject: [PATCH] fix comp util object initial visibility --- src/bin/e_comp_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index c047c9320..7f24caf00 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -2186,6 +2186,7 @@ e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type) char buf[1024]; int ok = 0; int x, y, w, h; + Eina_Bool vis; EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL); @@ -2208,6 +2209,7 @@ e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type) fast = conf->fast_objects; } name = evas_object_name_get(obj); + vis = evas_object_visible_get(obj); c = e_comp_util_evas_object_comp_get(obj); o = edje_object_add(c->evas); evas_object_data_set(o, "comp_object", (void*)1); @@ -2300,7 +2302,7 @@ e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type) _e_comp_object_event_add(o); - if (evas_object_visible_get(obj)) + if (vis) evas_object_show(o); return o;