e-tasks: add patch for changed genlist_item_insert_before api
authorMartin Jansa <Martin.Jansa@gmail.com>
Sat, 29 Jan 2011 23:39:05 +0000 (00:39 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Sat, 29 Jan 2011 23:39:24 +0000 (00:39 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/e17/e-tasks/genlist_item_insert_before.api.patch [new file with mode: 0644]
recipes/e17/e-tasks_svn.bb

diff --git a/recipes/e17/e-tasks/genlist_item_insert_before.api.patch b/recipes/e17/e-tasks/genlist_item_insert_before.api.patch
new file mode 100644 (file)
index 0000000..72ccc19
--- /dev/null
@@ -0,0 +1,14 @@
+adapt to elementary genlist_item_insert_before API change from r55869
+
+diff -uNr trunk2/src/gui.c trunk/src/gui.c
+--- trunk2/src/gui.c   2010-02-01 07:56:03.000000000 +0100
++++ trunk/src/gui.c    2011-01-30 00:36:15.000000000 +0100
+@@ -1067,7 +1067,7 @@
+       if(strcmp(sel_category, " All Tasks ")==0) strcpy(Task[i].cat, "Personal");
+       else strcpy(Task[i].cat, sel_category);
+       if(item) { 
+-              task_list[i] = elm_genlist_item_insert_after(list, &itc1, &Task[i], item, ELM_GENLIST_ITEM_NONE,
++              task_list[i] = elm_genlist_item_insert_after(list, &itc1, &Task[i], NULL, item, ELM_GENLIST_ITEM_NONE,
+                                                                 NULL, NULL);
+       }
+       //cater for no items in list
index f0cb543..eff0275 100644 (file)
@@ -9,9 +9,10 @@ inherit autotools
 
 SRCREV = "25"
 PV = "0.0.1+svnr${SRCPV}"
-PR = "r8"
+PR = "r9"
 
 SRC_URI = "svn://e-tasks.googlecode.com/svn;module=trunk;proto=http \
+           file://genlist_item_insert_before.api.patch \
            file://depends.eina.patch"
 S = "${WORKDIR}/trunk"