summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-21 22:51:20 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-21 22:51:20 +0100
commite087d0d918a819531338a19da2f72dda811e23af (patch)
tree22f2dbe548e2126317b38212e3aa33d15d9f86e6
parent920a8891e6c05b506a188061c1cfc653290df0b3 (diff)
New 1.17 API: edje.Edje.text_class_del()
-rw-r--r--efl/edje/efl.edje_object.pxi19
-rw-r--r--include/efl.edje.pxd1
2 files changed, 20 insertions, 0 deletions
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index fb9831a..1a01e6b 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -371,6 +371,25 @@ cdef class Edje(Object):
371 &font, &size) 371 &font, &size)
372 return (_ctouni(font), size) 372 return (_ctouni(font), size)
373 373
374 def text_class_del(self, text_class):
375 """Delete the object text class.
376
377 This function deletes any values at the object level for the specified
378 text class.
379
380 Note: deleting the text class will revert it to the values defined by
381 edje_text_class_set() or the text class defined in the theme file.
382
383 :param string text_class: The text class name to be deleted
384
385 .. versionadded:: 1.17
386
387 """
388 if isinstance(text_class, unicode):
389 text_class = PyUnicode_AsUTF8String(text_class)
390 edje_object_text_class_del(self.obj,
391 <const char *>text_class if text_class is not None else NULL)
392
374 def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh): 393 def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh):
375 """Sets the object size class. 394 """Sets the object size class.
376 395
diff --git a/include/efl.edje.pxd b/include/efl.edje.pxd
index 40f3fb8..d2e3810 100644
--- a/include/efl.edje.pxd
+++ b/include/efl.edje.pxd
@@ -377,6 +377,7 @@ cdef extern from "Edje.h":
377 377
378 void edje_object_text_class_set(Evas_Object *obj, char *text_class, char *font, Evas_Font_Size size) 378 void edje_object_text_class_set(Evas_Object *obj, char *text_class, char *font, Evas_Font_Size size)
379 Eina_Bool edje_object_text_class_get(Evas_Object *obj, const char *text_class, const char **font, Evas_Font_Size *size) 379 Eina_Bool edje_object_text_class_get(Evas_Object *obj, const char *text_class, const char **font, Evas_Font_Size *size)
380 void edje_object_text_class_del(Evas_Object *obj, const char *text_class)
380 381
381 Eina_Bool edje_object_size_class_set(Evas_Object *obj, const char *size_class, int minw, int minh, int maxw, int maxh) 382 Eina_Bool edje_object_size_class_set(Evas_Object *obj, const char *size_class, int minw, int minh, int maxw, int maxh)
382 Eina_Bool edje_object_size_class_get(Evas_Object *obj, const char *size_class, int *minw, int *minh, int *maxw, int *maxh) 383 Eina_Bool edje_object_size_class_get(Evas_Object *obj, const char *size_class, int *minw, int *minh, int *maxw, int *maxh)