kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=fd8159d4ec9f8bce43c777dda8095353accb6fb9

commit fd8159d4ec9f8bce43c777dda8095353accb6fb9
Author: Kai Huuhko <[email protected]>
Date:   Wed Oct 30 11:30:35 2013 +0200

    Elementary.mbe: Remove commented out code, comment out an unimplemented 
method.
---
 efl/elementary/multibuttonentry.pyx | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/efl/elementary/multibuttonentry.pyx 
b/efl/elementary/multibuttonentry.pyx
index 33df0c0..f5c2ecb 100644
--- a/efl/elementary/multibuttonentry.pyx
+++ b/efl/elementary/multibuttonentry.pyx
@@ -68,8 +68,6 @@ from efl.evas cimport Object as evasObject
 
 from libc.stdlib cimport free
 from libc.string cimport strdup
-from efl.eina cimport Eina_Stringshare, eina_stringshare_add, 
eina_stringshare_del, \
-    eina_stringshare_replace
 from object cimport Object
 import traceback
 from object_item cimport    _object_item_callback, \
@@ -78,6 +76,7 @@ from object_item cimport    _object_item_callback, \
 
 cdef Eina_Bool _multibuttonentry_filter_callback(Evas_Object *obj, \
     const_char *item_label, void *item_data, void *data) with gil:
+
     cdef:
         MultiButtonEntry mbe = object_from_instance(obj)
         bint ret
@@ -91,18 +90,6 @@ cdef Eina_Bool _multibuttonentry_filter_callback(Evas_Object 
*obj, \
 
     return ret
 
-    # XXX: MBE API is teh b0rg
-    # if ret is None:
-    #     eina_stringshare_del(item_label)
-    #     item_label = NULL
-    #     return 1
-    # elif isinstance(ret, (str, unicode)):
-    #     ret = PyUnicode_AsUTF8String(ret)
-    #     item_label = eina_stringshare_replace(&item_label, strdup(ret))
-    #     return 1
-    # else:
-    #     return 0
-
 cdef class MultiButtonEntryItem(ObjectItem):
 
     """An item for the MultiButtonEntry widget."""
@@ -331,9 +318,9 @@ cdef class MultiButtonEntry(Object):
 
         Py_INCREF(cbdata)
 
-    def filter_remove(self, func, *args, **kwargs):
-        #TODO
-        pass
+    #TODO
+    #def filter_remove(self, func, *args, **kwargs):
+        #pass
 
     property editable:
         """Whether the multibuttonentry is to be editable or not.

-- 


Reply via email to