rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=2958334c5028089c1908557b57d906ad02972216

commit 2958334c5028089c1908557b57d906ad02972216
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Aug 23 12:33:22 2016 +0300

    property: move items init to ecore_jobs
---
 src/bin/ui/property/property.c | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/property/property.c b/src/bin/ui/property/property.c
index 3330ac5..a4c6400 100644
--- a/src/bin/ui/property/property.c
+++ b/src/bin/ui/property/property.c
@@ -21,13 +21,34 @@
 #include "property_private.h"
 #include "property_common.h"
 
+typedef struct {
+   Evas_Object *property;
+   Property_Attribute *pa;
+   Elm_Object_Item *parent;
+} Item_Job;
+
+static void
+_item_add_job(void *data)
+{
+   Item_Job *ij = data;
+
+   property_item_add(ij->property, ij->pa, ij->parent);
+   free(ij);
+}
+
 static void
 _items_add(Evas_Object *property, Eina_List **items, Elm_Object_Item *parent)
 {
    Property_Attribute *pa;
 
    EINA_LIST_FREE(*items, pa)
-      property_item_add(property, pa, parent);
+     {
+        Item_Job *ij = mem_calloc(1, sizeof(Item_Job));
+        ij->property = property;
+        ij->pa = pa;
+        ij->parent = parent;
+        ecore_job_add(_item_add_job, ij);
+     }
 }
 
 void

-- 


Reply via email to