Enlightenment CVS committal Author : barbieri Project : e17 Module : proto/python-efl
Dir : e17/proto/python-efl/python-evas/evas Modified Files: evas.c_evas_object_smart.pxi Log Message: Remove bad 'default' implementation for SmartObject, they were causing more troubles than saving time. Too bad. =================================================================== RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas_object_smart.pxi,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- evas.c_evas_object_smart.pxi 9 Aug 2007 13:47:33 -0000 1.10 +++ evas.c_evas_object_smart.pxi 9 Aug 2007 15:59:28 -0000 1.11 @@ -184,19 +184,15 @@ and move registered children by it. * resize(): called in order to resize object. No default implementation. * show(): called in order to show the given element. Usually you call - the same function on children. Default implementation calls show() - on registered children. + the same function on children. No default implementation. * hide(): called in order to hide the given element. Usually you call - the same function on children. Default implementation calls hide() - on registered children. + the same function on children. No default implementation. * color_set(): called in order to change object color. No default implementation. * clip_set(): called in order to limit object's visible area. - Default implementation calls clip_set() on every registered - children. + No default implementation. * clip_unset(): called in order to unlimit object's visible area. - Default implementation calls clip_unset() on every registered - children. + No default implementation. Notes: * If you redefine object's __init__(), you MUST call your parent! @@ -323,59 +319,6 @@ itr = itr.next evas_list_free(lst) - def show(self): - cdef Evas_List *lst, *itr - lst = evas_object_smart_members_get(self.obj) - itr = lst - while itr: - evas_object_show(<Evas_Object*>itr.data) - itr = itr.next - evas_list_free(lst) - - def hide(self): - cdef Evas_List *lst, *itr - lst = evas_object_smart_members_get(self.obj) - itr = lst - while itr: - evas_object_hide(<Evas_Object*>itr.data) - itr = itr.next - evas_list_free(lst) - - def color_set(self, int r, int g, int b, int a): - cdef Evas_List *lst, *itr - lst = evas_object_smart_members_get(self.obj) - itr = lst - while itr: - evas_object_color_set(<Evas_Object*>itr.data, r, g, b, a) - itr = itr.next - evas_list_free(lst) - - def clip_set(self, obj): - cdef Evas_List *lst, *itr - cdef Object o - cdef Evas_Object *clip - if obj is None: - clip = NULL - elif isinstance(obj, Object): - o = <Object>obj - clip = o.obj - else: - raise ValueError("clip must be instance of evas.Object or None.") - lst = evas_object_smart_members_get(self.obj) - itr = lst - while itr: - evas_object_clip_set(<Evas_Object*>itr.data, clip) - itr = itr.next - evas_list_free(lst) - - def clip_unset(self): - cdef Evas_List *lst, *itr - lst = evas_object_smart_members_get(self.obj) - itr = lst - while itr: - evas_object_clip_unset(<Evas_Object*>itr.data) - itr = itr.next - evas_list_free(lst) # Factory def Rectangle(self, size=None, pos=None, geometry=None, color=None, ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs