kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=bb4ef6fb02c251ff0703a9b087053f0222b41e1c
commit bb4ef6fb02c251ff0703a9b087053f0222b41e1c Author: Kai Huuhko <[email protected]> Date: Mon Nov 25 23:24:57 2013 +0200 Elementary.entry: Make filter_append data arg optional and note a TODO. --- efl/elementary/entry.pyx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/efl/elementary/entry.pyx b/efl/elementary/entry.pyx index 9928f3d..d70e05e 100644 --- a/efl/elementary/entry.pyx +++ b/efl/elementary/entry.pyx @@ -1385,12 +1385,14 @@ cdef class Entry(Object): """ cb_data = (func, data) + # TODO: This is now a ref leak. It should be stored somewhere and + # deleted in the remove method. Py_INCREF(cb_data) elm_entry_markup_filter_append(self.obj, py_elm_entry_filter_cb, <void *>cb_data) - def markup_filter_prepend(self, func, data): + def markup_filter_prepend(self, func, data=None): """Prepend a markup filter function for text inserted in the entry Prepend the given callback to the list. See elm_entry_markup_filter_append() @@ -1406,7 +1408,7 @@ cdef class Entry(Object): py_elm_entry_filter_cb, <void *>cb_data) - def markup_filter_remove(self, func, data): + def markup_filter_remove(self, func, data=None): """Remove a markup filter from the list Removes the given callback from the filter list. See --
