summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-10-07 22:05:28 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-10-07 22:05:28 +0200
commita7c8b2d40d227a39e842df350c2dd2ee2de31ed8 (patch)
tree35038c151f62ae192eac3d6b3cdb7fa89eda4965 /efl
parentb82ed6f029a272183cbae24291dc9404709b0ab4 (diff)
New 1.16 API: Hoversel.label_auto_changed
...what a bad name for this prop
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/hoversel.pxi18
-rw-r--r--efl/elementary/hoversel_cdef.pxi2
2 files changed, 20 insertions, 0 deletions
diff --git a/efl/elementary/hoversel.pxi b/efl/elementary/hoversel.pxi
index b02d770..4b9f665 100644
--- a/efl/elementary/hoversel.pxi
+++ b/efl/elementary/hoversel.pxi
@@ -250,6 +250,24 @@ cdef class Hoversel(Button):
250 def expanded_get(self): 250 def expanded_get(self):
251 return bool(elm_hoversel_expanded_get(self.obj)) 251 return bool(elm_hoversel_expanded_get(self.obj))
252 252
253 property label_auto_changed:
254 """Change the label of hoversel to that of selected item automatically.
255
256 :type: bool
257
258 ..versionadded:: 1.16
259
260 """
261 def __get__(self):
262 return bool(elm_hoversel_label_auto_changed_get(self.obj))
263 def __set__(self, bint enable):
264 elm_hoversel_label_auto_changed_set(self.obj, enable)
265
266 def elabel_auto_changed_get(self):
267 return bool(elm_hoversel_label_auto_changed_get(self.obj))
268 def elabel_auto_changed_set(self, bint enable):
269 elm_hoversel_label_auto_changed_set(self.obj, enable)
270
253 def clear(self): 271 def clear(self):
254 """This will remove all the children items from the hoversel. 272 """This will remove all the children items from the hoversel.
255 273
diff --git a/efl/elementary/hoversel_cdef.pxi b/efl/elementary/hoversel_cdef.pxi
index cae03e0..f77ab82 100644
--- a/efl/elementary/hoversel_cdef.pxi
+++ b/efl/elementary/hoversel_cdef.pxi
@@ -20,3 +20,5 @@ cdef extern from "Elementary.h":
20 Elm_Object_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, void *data) 20 Elm_Object_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, void *data)
21 void elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type) 21 void elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type)
22 void elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type) 22 void elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type)
23 void elm_hoversel_label_auto_changed_set(Evas_Object *obj, Eina_Bool enable)
24 Eina_Bool elm_hoversel_label_auto_changed_get(Evas_Object *obj)