summaryrefslogtreecommitdiff
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
parent98b7b2408f28d423fe5308f8c60ead1cba22978d (diff)
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):
101 101
102 .. versionadded:: 1.12 102 .. versionadded:: 1.12
103 103
104 .. versionchanged:: 1.19 Property is now also readable
105
104 """ 106 """
105 def __set__(self, double ratio): 107 def __set__(self, double ratio):
106 elm_panel_scrollable_content_size_set(self.obj, ratio) 108 elm_panel_scrollable_content_size_set(self.obj, ratio)
109 def __get__(self):
110 return elm_panel_scrollable_content_size_get(self.obj)
107 111
108 def scrollable_content_size_set(self, double ratio): 112 def scrollable_content_size_set(self, double ratio):
109 elm_panel_scrollable_content_size_set(self.obj, ratio) 113 elm_panel_scrollable_content_size_set(self.obj, ratio)
114 def scrollable_content_size_get(self):
115 return elm_panel_scrollable_content_size_get(self.obj)
110 116
111 def toggle(self): 117 def toggle(self):
112 """Toggle the hidden state of the panel from code.""" 118 """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":
10 void elm_panel_scrollable_set(Evas_Object *obj, Eina_Bool scrollable) 10 void elm_panel_scrollable_set(Evas_Object *obj, Eina_Bool scrollable)
11 Eina_Bool elm_panel_scrollable_get(const Evas_Object *obj) 11 Eina_Bool elm_panel_scrollable_get(const Evas_Object *obj)
12 void elm_panel_scrollable_content_size_set(Evas_Object *obj, double ratio) 12 void elm_panel_scrollable_content_size_set(Evas_Object *obj, double ratio)
13 void elm_panel_scrollable_content_size_set(Evas_Object *obj, double ratio)
14 double elm_panel_scrollable_content_size_get(Evas_Object *obj)