diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2015-05-04 03:19:00 +0200 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2015-05-04 03:19:28 +0200 |
commit | c03464e343508aeee7c36f09d475fdfac1c50707 (patch) | |
tree | cc134d1073dcdaade8c1c66b84e1357d9d6c5898 | |
parent | 4d73872f8ff021138cdce88655559ba624d767a9 (diff) |
Add the data property for SlideshowItem
To be consistent with Genlist/grid behaviour
-rw-r--r-- | efl/elementary/slideshow.pyx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/efl/elementary/slideshow.pyx b/efl/elementary/slideshow.pyx index e1f9597..73a313d 100644 --- a/efl/elementary/slideshow.pyx +++ b/efl/elementary/slideshow.pyx | |||
@@ -284,6 +284,22 @@ cdef class SlideshowItem(ObjectItem): | |||
284 | type(self.item_class).__name__, | 284 | type(self.item_class).__name__, |
285 | self.item_data) | 285 | self.item_data) |
286 | 286 | ||
287 | property data: | ||
288 | """ The data (model) associated with this item. | ||
289 | |||
290 | This is the data that has been passed to the add/sorted_insert | ||
291 | functions, and the same that you get in the ItemClass get and delete | ||
292 | functions. | ||
293 | |||
294 | .. versionadded:: 1.14 | ||
295 | |||
296 | """ | ||
297 | def __get__(self): | ||
298 | return self.item_data | ||
299 | |||
300 | def data_get(self): | ||
301 | return self.item_data | ||
302 | |||
287 | def add_to(self, Slideshow slideshow not None): | 303 | def add_to(self, Slideshow slideshow not None): |
288 | """Add (append) a new item in a given slideshow widget. | 304 | """Add (append) a new item in a given slideshow widget. |
289 | 305 | ||