setup comp util object zoomap before setting its child

this avoids some minor canvas thrashing since the zoomap will try
to reapply existing geometries to the child instead of setting 0 and
triggering infinite callbacks
This commit is contained in:
Mike Blumenkrantz 2016-02-26 15:02:15 -05:00
parent 9fa7f41e35
commit 8c2396cd9b
1 changed files with 2 additions and 2 deletions

View File

@ -2723,11 +2723,11 @@ e_comp_object_util_add(Evas_Object *obj, E_Comp_Object_Type type)
evas_object_pass_events_set(o, evas_object_pass_events_get(obj));
z = e_zoomap_add(e_comp->evas);
evas_object_show(z);
evas_object_geometry_set(z, x, y, w, h);
e_zoomap_child_edje_solid_setup(z);
e_zoomap_smooth_set(z, conf->smooth_windows);
e_zoomap_child_set(z, obj);
e_zoomap_child_resize(z, w, h);
evas_object_show(z);
edje_object_signal_callback_add(o, "e,action,*,done", "e", _e_comp_object_util_done_defer, z);
evas_object_intercept_show_callback_add(o, _e_comp_object_util_show, z);