I think my commit maybe made this break. elm_hoversel_item_del_cb_set and some APIs was deprecated. so I change test code using elm_hoversel_item_del_cb_set to elm_object_item_del_cb_set and remove hoversel api from pxi file. please guide correct method or send patch to change deprecated api to availabe api in python. I will referencd your guide because there are so many deprecated function which not removed yet.
thanks. 2012/3/8, Martin Jansa <martin.ja...@gmail.com>: > Hi, > > is someone already working on this issue or should I try to prepare patch > for this? > > Cheers, > > | cd . && /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/bin/python -m > cython -I/OE/shr-core/tmp-eglibc/sysroots/om-gta02/usr/include/python-evas > -I./include -o elementary/elementary.c_elementary.c > elementary/elementary.c_elementary.pyx > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | cbdata = <void*>self.cbt > | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, > icon_type, > | cb, cbdata) > | > | Py_INCREF(self) > | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:62:34: undeclared name not > builtin: elm_object_item_del_cb_set > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | cbdata = <void*>self.cbt > | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, > icon_type, > | cb, cbdata) > | > | Py_INCREF(self) > | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:62:39: Cannot convert > 'Elm_Object_Item *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | cbdata = <void*>self.cbt > | self.item = elm_hoversel_item_add(hoversel.obj, label, i_f, > icon_type, > | cb, cbdata) > | > | Py_INCREF(self) > | elm_object_item_del_cb_set(self.item, _hoversel_item_del_cb) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:62:67: Cannot convert > 'void (void *, Evas_Object *, void *) nogil' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | def __set__(self, value): > | self.label_set(value) > | > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:136:40: undeclared name > not builtin: elm_object_item_part_content_set > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | def __set__(self, value): > | self.label_set(value) > | > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:136:45: Cannot convert > 'Evas_Object *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | def __set__(self, value): > | self.label_set(value) > | > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:136:55: Cannot convert > 'Evas_Object *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | > | def icon_get(self): > | cdef c_evas.Evas_Object *icon > | icon = elm_object_item_part_content_get(self.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:140:47: undeclared name > not builtin: elm_object_item_part_content_get > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | > | def icon_get(self): > | cdef c_evas.Evas_Object *icon > | icon = elm_object_item_part_content_get(self.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:140:52: Cannot convert > 'Evas_Object *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def icon_set(self, c_evas.Object icon): > | elm_object_item_part_content_set(self.obj, icon.obj) > | > | def icon_get(self): > | cdef c_evas.Evas_Object *icon > | icon = elm_object_item_part_content_get(self.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_hoversel.pxi:140:47: Cannot convert > Python object to 'Evas_Object *' > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | self.obj.item_style = NULL > | self.obj.func.text_get = _py_elm_genlist_item_text_get > | self.obj.func.content_get = _py_elm_genlist_item_content_get > | self.obj.func.state_get = _py_elm_genlist_item_state_get > | self.obj.func.del_ = _py_elm_object_item_del > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:125:52: undeclared name not > builtin: _py_elm_object_item_del > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | self.obj.item_style = NULL > | self.obj.func.text_get = _py_elm_genlist_item_text_get > | self.obj.func.content_get = _py_elm_genlist_item_content_get > | self.obj.func.state_get = _py_elm_genlist_item_state_get > | self.obj.func.del_ = _py_elm_object_item_del > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:125:52: Cannot convert > Python object to 'GenlistItemDelFunc' > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def multi_select_set(self, multi): > | elm_genlist_multi_select_set(self.obj, bool(multi)) > | > | def horizontal_mode_set(self, Elm_List_Mode mode): > | _METHOD_DEPRECATED(self, "horizontal_set") > | elm_genlist_mode_set(self.obj, mode) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:608:28: undeclared name not > builtin: elm_genlist_mode_set > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def multi_select_set(self, multi): > | elm_genlist_multi_select_set(self.obj, bool(multi)) > | > | def horizontal_mode_set(self, Elm_List_Mode mode): > | _METHOD_DEPRECATED(self, "horizontal_set") > | elm_genlist_mode_set(self.obj, mode) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:608:33: Cannot convert > 'Evas_Object *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | def horizontal_mode_set(self, Elm_List_Mode mode): > | _METHOD_DEPRECATED(self, "horizontal_set") > | elm_genlist_mode_set(self.obj, mode) > | > | def horizontal_set(self, Elm_List_Mode mode): > | elm_genlist_mode_set(self.obj, mode) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:611:33: Cannot convert > 'Evas_Object *' to Python object > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | def horizontal_set(self, Elm_List_Mode mode): > | elm_genlist_mode_set(self.obj, mode) > | > | def horizontal_get(self): > | return elm_genlist_mode_get(self.obj) > | ERROR: Function failed: do_compile (see > /OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/python-elementary-0.7.3+svnr69037-r2.4/temp/log.do_compile.17895 > for further information) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:614:35: undeclared name not > builtin: elm_genlist_mode_get > | > | Error compiling Cython file: > | ------------------------------------------------------------ > | ... > | > | def horizontal_set(self, Elm_List_Mode mode): > | elm_genlist_mode_set(self.obj, mode) > | > | def horizontal_get(self): > | return elm_genlist_mode_get(self.obj) > | ^ > | ------------------------------------------------------------ > | > | elementary/elementary.c_elementary_genlist.pxi:614:40: Cannot convert > 'Evas_Object *' to Python object > | make: *** [elementary/elementary.c_elementary.c] Error 1 > > -- > Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel