davemds pushed a commit to branch master.

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

commit 078d440e05c370daeada4c1ad3f3526a74844995
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Thu Jan 21 23:03:11 2016 +0100

    New 1.17 API: edje.Edje.color_class_clear()
---
 efl/edje/efl.edje_object.pxi | 11 +++++++++++
 include/efl.edje.pxd         |  1 +
 2 files changed, 12 insertions(+)

diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index 1a01e6b..1366761 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -331,6 +331,17 @@ cdef class Edje(Object):
         edje_object_color_class_del(self.obj,
             <const char *>color_class if color_class is not None else NULL)
 
+    def color_class_clear(self):
+        """ Clear all object color classes.
+
+        :return: True on success, False otherwise
+        :rtype: bool
+
+        .. versionadded:: 1.17
+
+        """
+        return bool(edje_object_color_class_clear(self.obj))
+
     def text_class_set(self, text_class, font, int size):
         """Set text class.
 
diff --git a/include/efl.edje.pxd b/include/efl.edje.pxd
index d2e3810..177f52c 100644
--- a/include/efl.edje.pxd
+++ b/include/efl.edje.pxd
@@ -374,6 +374,7 @@ cdef extern from "Edje.h":
     void edje_object_color_class_set(Evas_Object *obj, char *color_class, int 
r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, 
int a3)
     void edje_object_color_class_get(Evas_Object *obj, char *color_class, int 
*r, int *g, int *b, int *a, int *r2, int *g2, int *b2, int *a2, int *r3, int 
*g3, int *b3, int *a3)
     void edje_object_color_class_del(Evas_Object *obj, char *color_class)
+    Eina_Bool edje_object_color_class_clear(Evas_Object *obj)
 
     void edje_object_text_class_set(Evas_Object *obj, char *text_class, char 
*font, Evas_Font_Size size)
     Eina_Bool edje_object_text_class_get(Evas_Object *obj, const char 
*text_class, const char **font, Evas_Font_Size *size)

-- 


Reply via email to