aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-02-25 10:57:19 +0100
committerDave Andreoli <dave@gurumeditation.it>2017-02-25 10:57:19 +0100
commit3e0dbeb7f779a5b312c4e96e690f001c9e6da378 (patch)
tree3f1d7bd57c71599cb02941cd2274d28b263cd980
parentRename class names accordly to Eo recent changes (diff)
downloadpython-efl-3e0dbeb7f779a5b312c4e96e690f001c9e6da378.tar.gz
New 1.19 API: elm.Panel.scrollable_content_size_get
-rw-r--r--efl/elementary/panel.pxi6
-rw-r--r--efl/elementary/panel_cdef.pxi2
2 files changed, 8 insertions, 0 deletions
diff --git a/efl/elementary/panel.pxi b/efl/elementary/panel.pxi
index 320d4b6..cbaf47b 100644
--- a/efl/elementary/panel.pxi
+++ b/efl/elementary/panel.pxi
@@ -101,12 +101,18 @@ cdef class Panel(LayoutClass):
.. versionadded:: 1.12
+ .. versionchanged:: 1.19 Property is now also readable
+
"""
def __set__(self, double ratio):
elm_panel_scrollable_content_size_set(self.obj, ratio)
+ def __get__(self):
+ return elm_panel_scrollable_content_size_get(self.obj)
def scrollable_content_size_set(self, double ratio):
elm_panel_scrollable_content_size_set(self.obj, ratio)
+ def scrollable_content_size_get(self):
+ return elm_panel_scrollable_content_size_get(self.obj)
def toggle(self):
"""Toggle the hidden state of the panel from code."""
diff --git a/efl/elementary/panel_cdef.pxi b/efl/elementary/panel_cdef.pxi
index 5b3b4c7..c6f52a4 100644
--- a/efl/elementary/panel_cdef.pxi
+++ b/efl/elementary/panel_cdef.pxi
@@ -10,3 +10,5 @@ cdef extern from "Elementary.h":
void elm_panel_scrollable_set(Evas_Object *obj, Eina_Bool scrollable)
Eina_Bool elm_panel_scrollable_get(const Evas_Object *obj)
void elm_panel_scrollable_content_size_set(Evas_Object *obj, double ratio)
+ void elm_panel_scrollable_content_size_set(Evas_Object *obj, double ratio)
+ double elm_panel_scrollable_content_size_get(Evas_Object *obj)