aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-08-17 10:46:00 +0200
committerDave Andreoli <dave@gurumeditation.it>2018-08-17 10:46:00 +0200
commit2991a6683efd743d024f4afaf8c5ad6db018a758 (patch)
treed782f4ebcbf7f8a366fba9ceaa0467ee0abd38e6
parentCtxpopup: add slow test with many items (diff)
downloadpython-efl-2991a6683efd743d024f4afaf8c5ad6db018a758.tar.gz
Fix elm.Image.file.__get__
This is to hide a behaviour changes in elm, quite a corner case, but spotted by our tests. If you do a file_get before a file_set, elm is nomore nullifying the pointers, thus we try to ctouni our garbage. Just initialize well our vars
-rw-r--r--efl/elementary/image.pxi8
1 files changed, 4 insertions, 4 deletions
diff --git a/efl/elementary/image.pxi b/efl/elementary/image.pxi
index 0e75ae0..d03e982 100644
--- a/efl/elementary/image.pxi
+++ b/efl/elementary/image.pxi
@@ -125,8 +125,8 @@ cdef class Image(Object):
def __get__(self):
cdef:
- const char *filename
- const char *group
+ const char *filename = NULL
+ const char *group = NULL
elm_image_file_get(self.obj, &filename, &group)
return (_ctouni(filename), _ctouni(group))
@@ -140,8 +140,8 @@ cdef class Image(Object):
raise RuntimeError("Could not set file.")
def file_get(self):
cdef:
- const char *filename
- const char *group
+ const char *filename = NULL
+ const char *group = NULL
elm_image_file_get(self.obj, &filename, &group)
return (_ctouni(filename), _ctouni(group))