summaryrefslogtreecommitdiff
path: root/efl/edje
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-05 03:13:15 +0300
commitadf70fa26fcae845b0bc55c6eebcaeafadc4d1c7 (patch)
treec5bf8953e6b6081bb6542eb5372295875151df02 /efl/edje
parent1149c6ed91a5dcb6e23998ba112d9e3d20a5ceb9 (diff)
Remove const hacks
They were a workaround for limitations in Cython <0.18
Diffstat (limited to 'efl/edje')
-rw-r--r--efl/edje/efl.edje.pyx28
-rw-r--r--efl/edje/efl.edje_edit.pyx104
-rw-r--r--efl/edje/efl.edje_edit_group.pxi2
-rw-r--r--efl/edje/efl.edje_edit_part.pxi48
-rw-r--r--efl/edje/efl.edje_edit_part_state.pxi30
-rw-r--r--efl/edje/efl.edje_edit_program.pxi40
-rw-r--r--efl/edje/efl.edje_external.pxi26
-rw-r--r--efl/edje/efl.edje_object.pxi128
8 files changed, 203 insertions, 203 deletions
diff --git a/efl/edje/efl.edje.pyx b/efl/edje/efl.edje.pyx
index a0e2322..1203f02 100644
--- a/efl/edje/efl.edje.pyx
+++ b/efl/edje/efl.edje.pyx
@@ -157,7 +157,7 @@ def thaw():
157 157
158def fontset_append_set(fonts): 158def fontset_append_set(fonts):
159 if isinstance(fonts, unicode): fonts = PyUnicode_AsUTF8String(fonts) 159 if isinstance(fonts, unicode): fonts = PyUnicode_AsUTF8String(fonts)
160 edje_fontset_append_set(<const_char *>fonts if fonts is not None else NULL) 160 edje_fontset_append_set(<const char *>fonts if fonts is not None else NULL)
161 161
162 162
163def fontset_append_get(): 163def fontset_append_get():
@@ -168,7 +168,7 @@ def file_collection_list(file):
168 cdef Eina_List *lst 168 cdef Eina_List *lst
169 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file) 169 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file)
170 lst = edje_file_collection_list( 170 lst = edje_file_collection_list(
171 <const_char *>file if file is not None else NULL) 171 <const char *>file if file is not None else NULL)
172 ret = eina_list_strings_to_python_list(lst) 172 ret = eina_list_strings_to_python_list(lst)
173 edje_file_collection_list_free(lst) 173 edje_file_collection_list_free(lst)
174 return ret 174 return ret
@@ -178,8 +178,8 @@ def file_group_exists(file, group):
178 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file) 178 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file)
179 if isinstance(group, unicode): group = PyUnicode_AsUTF8String(group) 179 if isinstance(group, unicode): group = PyUnicode_AsUTF8String(group)
180 return bool(edje_file_group_exists( 180 return bool(edje_file_group_exists(
181 <const_char *>file if file is not None else NULL, 181 <const char *>file if file is not None else NULL,
182 <const_char *>group if group is not None else NULL)) 182 <const char *>group if group is not None else NULL))
183 183
184 184
185def file_data_get(file, key): 185def file_data_get(file, key):
@@ -187,8 +187,8 @@ def file_data_get(file, key):
187 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file) 187 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file)
188 if isinstance(key, unicode): key = PyUnicode_AsUTF8String(key) 188 if isinstance(key, unicode): key = PyUnicode_AsUTF8String(key)
189 s = edje_file_data_get( 189 s = edje_file_data_get(
190 <const_char *>file if file is not None else NULL, 190 <const char *>file if file is not None else NULL,
191 <const_char *>key if key is not None else NULL) 191 <const char *>key if key is not None else NULL)
192 ret = _touni(s) 192 ret = _touni(s)
193 libc.stdlib.free(s) 193 libc.stdlib.free(s)
194 return ret 194 return ret
@@ -236,7 +236,7 @@ def color_class_set(color_class,
236 if isinstance(color_class, unicode): 236 if isinstance(color_class, unicode):
237 color_class = PyUnicode_AsUTF8String(color_class) 237 color_class = PyUnicode_AsUTF8String(color_class)
238 edje_color_class_set( 238 edje_color_class_set(
239 <const_char *>color_class if color_class is not None else NULL, 239 <const char *>color_class if color_class is not None else NULL,
240 r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3) 240 r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3)
241 241
242 242
@@ -247,7 +247,7 @@ def color_class_get(color_class):
247 if isinstance(color_class, unicode): 247 if isinstance(color_class, unicode):
248 color_class = PyUnicode_AsUTF8String(color_class) 248 color_class = PyUnicode_AsUTF8String(color_class)
249 edje_color_class_get( 249 edje_color_class_get(
250 <const_char *>color_class if color_class is not None else NULL, 250 <const char *>color_class if color_class is not None else NULL,
251 &r, &g, &b, &a, &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3) 251 &r, &g, &b, &a, &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3)
252 return (r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3) 252 return (r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3)
253 253
@@ -256,7 +256,7 @@ def color_class_del(color_class):
256 if isinstance(color_class, unicode): 256 if isinstance(color_class, unicode):
257 color_class = PyUnicode_AsUTF8String(color_class) 257 color_class = PyUnicode_AsUTF8String(color_class)
258 edje_color_class_del( 258 edje_color_class_del(
259 <const_char *>color_class if color_class is not None else NULL) 259 <const char *>color_class if color_class is not None else NULL)
260 260
261 261
262def color_class_list(): 262def color_class_list():
@@ -280,15 +280,15 @@ def text_class_set(text_class, font, int size):
280 if isinstance(font, unicode): 280 if isinstance(font, unicode):
281 font = PyUnicode_AsUTF8String(font) 281 font = PyUnicode_AsUTF8String(font)
282 edje_text_class_set( 282 edje_text_class_set(
283 <const_char *>text_class if text_class is not None else NULL, 283 <const char *>text_class if text_class is not None else NULL,
284 <const_char *>font if font is not None else NULL, 284 <const char *>font if font is not None else NULL,
285 size) 285 size)
286 286
287 287
288def text_class_del(text_class): 288def text_class_del(text_class):
289 if isinstance(text_class, unicode): text_class = PyUnicode_AsUTF8String(text_class) 289 if isinstance(text_class, unicode): text_class = PyUnicode_AsUTF8String(text_class)
290 edje_text_class_del( 290 edje_text_class_del(
291 <const_char *>text_class if text_class is not None else NULL) 291 <const char *>text_class if text_class is not None else NULL)
292 292
293 293
294def text_class_list(): 294def text_class_list():
@@ -323,7 +323,7 @@ def extern_object_aspect_set(Object obj, int aspect, int w, int h):
323 323
324 324
325def available_modules_get(): 325def available_modules_get():
326 cdef const_Eina_List *lst 326 cdef const Eina_List *lst
327 lst = edje_available_modules_get() 327 lst = edje_available_modules_get()
328 ret = [] 328 ret = []
329 while lst: 329 while lst:
@@ -335,7 +335,7 @@ def available_modules_get():
335def module_load(name): 335def module_load(name):
336 if isinstance(name, unicode): name = PyUnicode_AsUTF8String(name) 336 if isinstance(name, unicode): name = PyUnicode_AsUTF8String(name)
337 return bool(edje_module_load( 337 return bool(edje_module_load(
338 <const_char *>name if name is not None else NULL)) 338 <const char *>name if name is not None else NULL))
339 339
340 340
341include "efl.edje_message.pxi" 341include "efl.edje_message.pxi"
diff --git a/efl/edje/efl.edje_edit.pyx b/efl/edje/efl.edje_edit.pyx
index 77ed68a..ae548dc 100644
--- a/efl/edje/efl.edje_edit.pyx
+++ b/efl/edje/efl.edje_edit.pyx
@@ -48,7 +48,7 @@ cdef class EdjeEdit(Edje):
48 48
49 # General 49 # General
50 def compiler_get(self): 50 def compiler_get(self):
51 cdef const_char *s = edje_edit_compiler_get(self.obj) 51 cdef const char *s = edje_edit_compiler_get(self.obj)
52 r = _ctouni(s) 52 r = _ctouni(s)
53 if s != NULL: 53 if s != NULL:
54 edje_edit_string_free(s) 54 edje_edit_string_free(s)
@@ -71,17 +71,17 @@ cdef class EdjeEdit(Edje):
71 def group_add(self, name): 71 def group_add(self, name):
72 if isinstance(name, unicode): name = name.encode("UTF-8") 72 if isinstance(name, unicode): name = name.encode("UTF-8")
73 return bool(edje_edit_group_add(self.obj, 73 return bool(edje_edit_group_add(self.obj,
74 <const_char *>name if name is not None else NULL)) 74 <const char *>name if name is not None else NULL))
75 75
76 def group_del(self, name): 76 def group_del(self, name):
77 if isinstance(name, unicode): name = name.encode("UTF-8") 77 if isinstance(name, unicode): name = name.encode("UTF-8")
78 return bool(edje_edit_group_del(self.obj, 78 return bool(edje_edit_group_del(self.obj,
79 <const_char *>name if name is not None else NULL)) 79 <const char *>name if name is not None else NULL))
80 80
81 def group_exist(self, name): 81 def group_exist(self, name):
82 if isinstance(name, unicode): name = name.encode("UTF-8") 82 if isinstance(name, unicode): name = name.encode("UTF-8")
83 return bool(edje_edit_group_exist(self.obj, 83 return bool(edje_edit_group_exist(self.obj,
84 <const_char *>name if name is not None else NULL)) 84 <const char *>name if name is not None else NULL))
85 85
86 # Data 86 # Data
87 property data: 87 property data:
@@ -96,8 +96,8 @@ cdef class EdjeEdit(Edje):
96 96
97 def data_get(self, name): 97 def data_get(self, name):
98 if isinstance(name, unicode): name = name.encode("UTF-8") 98 if isinstance(name, unicode): name = name.encode("UTF-8")
99 cdef const_char *val = edje_edit_data_value_get(self.obj, 99 cdef const char *val = edje_edit_data_value_get(self.obj,
100 <const_char *>name if name is not None else NULL) 100 <const char *>name if name is not None else NULL)
101 r = _ctouni(val) 101 r = _ctouni(val)
102 edje_edit_string_free(val) 102 edje_edit_string_free(val)
103 return r 103 return r
@@ -107,27 +107,27 @@ cdef class EdjeEdit(Edje):
107 if isinstance(value, unicode): value = value.encode("UTF-8") 107 if isinstance(value, unicode): value = value.encode("UTF-8")
108 108
109 return bool(edje_edit_data_value_set(self.obj, 109 return bool(edje_edit_data_value_set(self.obj,
110 <const_char *>name if name is not None else NULL, 110 <const char *>name if name is not None else NULL,
111 <const_char *>value if value is not None else NULL)) 111 <const char *>value if value is not None else NULL))
112 112
113 def data_add(self, name, value): 113 def data_add(self, name, value):
114 if isinstance(name, unicode): name = name.encode("UTF-8") 114 if isinstance(name, unicode): name = name.encode("UTF-8")
115 if isinstance(value, unicode): value = value.encode("UTF-8") 115 if isinstance(value, unicode): value = value.encode("UTF-8")
116 return bool(edje_edit_data_add(self.obj, 116 return bool(edje_edit_data_add(self.obj,
117 <const_char *>name if name is not None else NULL, 117 <const char *>name if name is not None else NULL,
118 <const_char *>value if value is not None else NULL)) 118 <const char *>value if value is not None else NULL))
119 119
120 def data_rename(self, old, new): 120 def data_rename(self, old, new):
121 if isinstance(old, unicode): old = old.encode("UTF-8") 121 if isinstance(old, unicode): old = old.encode("UTF-8")
122 if isinstance(new, unicode): new = new.encode("UTF-8") 122 if isinstance(new, unicode): new = new.encode("UTF-8")
123 return bool(edje_edit_data_name_set(self.obj, 123 return bool(edje_edit_data_name_set(self.obj,
124 <const_char *>old if old is not None else NULL, 124 <const char *>old if old is not None else NULL,
125 <const_char *>new if new is not None else NULL)) 125 <const char *>new if new is not None else NULL))
126 126
127 def data_del(self, name): 127 def data_del(self, name):
128 if isinstance(name, unicode): name = name.encode("UTF-8") 128 if isinstance(name, unicode): name = name.encode("UTF-8")
129 return bool(edje_edit_data_del(self.obj, 129 return bool(edje_edit_data_del(self.obj,
130 <const_char *>name if name is not None else NULL)) 130 <const char *>name if name is not None else NULL))
131 131
132 # Group Data 132 # Group Data
133 property group_data: 133 property group_data:
@@ -141,10 +141,10 @@ cdef class EdjeEdit(Edje):
141 return ret 141 return ret
142 142
143 def group_data_get(self, name): 143 def group_data_get(self, name):
144 cdef const_char *val 144 cdef const char *val
145 if isinstance(name, unicode): name = name.encode("UTF-8") 145 if isinstance(name, unicode): name = name.encode("UTF-8")
146 val = edje_edit_group_data_value_get(self.obj, 146 val = edje_edit_group_data_value_get(self.obj,
147 <const_char *>name if name is not None else NULL) 147 <const char *>name if name is not None else NULL)
148 r = _ctouni(val) 148 r = _ctouni(val)
149 edje_edit_string_free(val) 149 edje_edit_string_free(val)
150 return r 150 return r
@@ -153,27 +153,27 @@ cdef class EdjeEdit(Edje):
153 if isinstance(name, unicode): name = name.encode("UTF-8") 153 if isinstance(name, unicode): name = name.encode("UTF-8")
154 if isinstance(value, unicode): value = value.encode("UTF-8") 154 if isinstance(value, unicode): value = value.encode("UTF-8")
155 return bool(edje_edit_group_data_value_set(self.obj, 155 return bool(edje_edit_group_data_value_set(self.obj,
156 <const_char *>name if name is not None else NULL, 156 <const char *>name if name is not None else NULL,
157 <const_char *>value if value is not None else NULL)) 157 <const char *>value if value is not None else NULL))
158 158
159 def group_data_add(self, name, value): 159 def group_data_add(self, name, value):
160 if isinstance(name, unicode): name = name.encode("UTF-8") 160 if isinstance(name, unicode): name = name.encode("UTF-8")
161 if isinstance(value, unicode): value = value.encode("UTF-8") 161 if isinstance(value, unicode): value = value.encode("UTF-8")
162 return bool(edje_edit_group_data_add(self.obj, 162 return bool(edje_edit_group_data_add(self.obj,
163 <const_char *>name if name is not None else NULL, 163 <const char *>name if name is not None else NULL,
164 <const_char *>value if value is not None else NULL)) 164 <const char *>value if value is not None else NULL))
165 165
166 def group_data_rename(self, old, new): 166 def group_data_rename(self, old, new):
167 if isinstance(old, unicode): old = old.encode("UTF-8") 167 if isinstance(old, unicode): old = old.encode("UTF-8")
168 if isinstance(new, unicode): new = new.encode("UTF-8") 168 if isinstance(new, unicode): new = new.encode("UTF-8")
169 return bool(edje_edit_group_data_name_set(self.obj, 169 return bool(edje_edit_group_data_name_set(self.obj,
170 <const_char *>old if old is not None else NULL, 170 <const char *>old if old is not None else NULL,
171 <const_char *>new if new is not None else NULL)) 171 <const char *>new if new is not None else NULL))
172 172
173 def group_data_del(self, name): 173 def group_data_del(self, name):
174 if isinstance(name, unicode): name = name.encode("UTF-8") 174 if isinstance(name, unicode): name = name.encode("UTF-8")
175 return bool(edje_edit_group_data_del(self.obj, 175 return bool(edje_edit_group_data_del(self.obj,
176 <const_char *>name if name is not None else NULL)) 176 <const char *>name if name is not None else NULL))
177 177
178 # Text Style 178 # Text Style
179 property text_styles: 179 property text_styles:
@@ -190,12 +190,12 @@ cdef class EdjeEdit(Edje):
190 def text_style_add(self, name): 190 def text_style_add(self, name):
191 if isinstance(name, unicode): name = name.encode("UTF-8") 191 if isinstance(name, unicode): name = name.encode("UTF-8")
192 return bool(edje_edit_style_add(self.obj, 192 return bool(edje_edit_style_add(self.obj,
193 <const_char *>name if name is not None else NULL)) 193 <const char *>name if name is not None else NULL))
194 194
195 def text_style_del(self, name): 195 def text_style_del(self, name):
196 if isinstance(name, unicode): name = name.encode("UTF-8") 196 if isinstance(name, unicode): name = name.encode("UTF-8")
197 edje_edit_style_del(self.obj, 197 edje_edit_style_del(self.obj,
198 <const_char *>name if name is not None else NULL) 198 <const char *>name if name is not None else NULL)
199 return True 199 return True
200 200
201 # Color Classes 201 # Color Classes
@@ -213,12 +213,12 @@ cdef class EdjeEdit(Edje):
213 def color_class_add(self, name): 213 def color_class_add(self, name):
214 if isinstance(name, unicode): name = name.encode("UTF-8") 214 if isinstance(name, unicode): name = name.encode("UTF-8")
215 return bool(edje_edit_color_class_add(self.obj, 215 return bool(edje_edit_color_class_add(self.obj,
216 <const_char *>name if name is not None else NULL)) 216 <const char *>name if name is not None else NULL))
217 217
218 def color_class_del(self, name): 218 def color_class_del(self, name):
219 if isinstance(name, unicode): name = name.encode("UTF-8") 219 if isinstance(name, unicode): name = name.encode("UTF-8")
220 return bool(edje_edit_color_class_del(self.obj, 220 return bool(edje_edit_color_class_del(self.obj,
221 <const_char *>name if name is not None else NULL)) 221 <const char *>name if name is not None else NULL))
222 222
223 # Externals 223 # Externals
224 property externals: 224 property externals:
@@ -232,12 +232,12 @@ cdef class EdjeEdit(Edje):
232 def external_add(self, name): 232 def external_add(self, name):
233 if isinstance(name, unicode): name = name.encode("UTF-8") 233 if isinstance(name, unicode): name = name.encode("UTF-8")
234 return bool(edje_edit_external_add(self.obj, 234 return bool(edje_edit_external_add(self.obj,
235 <const_char *>name if name is not None else NULL)) 235 <const char *>name if name is not None else NULL))
236 236
237 def external_del(self, name): 237 def external_del(self, name):
238 if isinstance(name, unicode): name = name.encode("UTF-8") 238 if isinstance(name, unicode): name = name.encode("UTF-8")
239 return bool(edje_edit_external_del(self.obj, 239 return bool(edje_edit_external_del(self.obj,
240 <const_char *>name if name is not None else NULL)) 240 <const char *>name if name is not None else NULL))
241 241
242 # Fonts 242 # Fonts
243 property fonts: 243 property fonts:
@@ -252,13 +252,13 @@ cdef class EdjeEdit(Edje):
252 if isinstance(font, unicode): font = font.encode("UTF-8") 252 if isinstance(font, unicode): font = font.encode("UTF-8")
253 if isinstance(alias, unicode): alias = alias.encode("UTF-8") 253 if isinstance(alias, unicode): alias = alias.encode("UTF-8")
254 return bool(edje_edit_font_add(self.obj, 254 return bool(edje_edit_font_add(self.obj,
255 <const_char *>font if font is not None else NULL, 255 <const char *>font if font is not None else NULL,
256 <const_char *>alias if alias is not None else NULL)) 256 <const char *>alias if alias is not None else NULL))
257 257
258 def font_del(self, alias): 258 def font_del(self, alias):
259 if isinstance(alias, unicode): alias = alias.encode("UTF-8") 259 if isinstance(alias, unicode): alias = alias.encode("UTF-8")
260 return bool(edje_edit_font_del(self.obj, 260 return bool(edje_edit_font_del(self.obj,
261 <const_char *>alias if alias is not None else NULL)) 261 <const char *>alias if alias is not None else NULL))
262 262
263 # Parts 263 # Parts
264 property parts: 264 property parts:
@@ -278,7 +278,7 @@ cdef class EdjeEdit(Edje):
278 if isinstance(name, unicode): name = name.encode("UTF-8") 278 if isinstance(name, unicode): name = name.encode("UTF-8")
279 if type != EDJE_PART_TYPE_EXTERNAL: 279 if type != EDJE_PART_TYPE_EXTERNAL:
280 return bool(edje_edit_part_add(self.obj, 280 return bool(edje_edit_part_add(self.obj,
281 <const_char *>name if name is not None else NULL, 281 <const char *>name if name is not None else NULL,
282 <Edje_Part_Type>type)) 282 <Edje_Part_Type>type))
283 else: 283 else:
284 return bool(edje_edit_part_external_add(self.obj, name, source)) 284 return bool(edje_edit_part_external_add(self.obj, name, source))
@@ -286,12 +286,12 @@ cdef class EdjeEdit(Edje):
286 def part_del(self, name): 286 def part_del(self, name):
287 if isinstance(name, unicode): name = name.encode("UTF-8") 287 if isinstance(name, unicode): name = name.encode("UTF-8")
288 return bool(edje_edit_part_del(self.obj, 288 return bool(edje_edit_part_del(self.obj,
289 <const_char *>name if name is not None else NULL)) 289 <const char *>name if name is not None else NULL))
290 290
291 def part_exist(self, name): 291 def part_exist(self, name):
292 if isinstance(name, unicode): name = name.encode("UTF-8") 292 if isinstance(name, unicode): name = name.encode("UTF-8")
293 return bool(edje_edit_part_exist(self.obj, 293 return bool(edje_edit_part_exist(self.obj,
294 <const_char *>name if name is not None else NULL)) 294 <const char *>name if name is not None else NULL))
295 295
296 # Images 296 # Images
297 property images: 297 property images:
@@ -305,17 +305,17 @@ cdef class EdjeEdit(Edje):
305 def image_id_get(self, image): 305 def image_id_get(self, image):
306 if isinstance(image, unicode): image = image.encode("UTF-8") 306 if isinstance(image, unicode): image = image.encode("UTF-8")
307 return edje_edit_image_id_get(self.obj, 307 return edje_edit_image_id_get(self.obj,
308 <const_char *>image if image is not None else NULL) 308 <const char *>image if image is not None else NULL)
309 309
310 def image_add(self, path): 310 def image_add(self, path):
311 if isinstance(path, unicode): path = path.encode("UTF-8") 311 if isinstance(path, unicode): path = path.encode("UTF-8")
312 return bool(edje_edit_image_add(self.obj, 312 return bool(edje_edit_image_add(self.obj,
313 <const_char *>path if path is not None else NULL)) 313 <const char *>path if path is not None else NULL))
314 314
315 def image_del(self, image): 315 def image_del(self, image):
316 if isinstance(image, unicode): image = image.encode("UTF-8") 316 if isinstance(image, unicode): image = image.encode("UTF-8")
317 return bool(edje_edit_image_del(self.obj, 317 return bool(edje_edit_image_del(self.obj,
318 <const_char *>image if image is not None else NULL)) 318 <const char *>image if image is not None else NULL))
319 319
320 # Programs 320 # Programs
321 property programs: 321 property programs:
@@ -335,17 +335,17 @@ cdef class EdjeEdit(Edje):
335 def program_add(self, name): 335 def program_add(self, name):
336 if isinstance(name, unicode): name = name.encode("UTF-8") 336 if isinstance(name, unicode): name = name.encode("UTF-8")
337 return bool(edje_edit_program_add(self.obj, 337 return bool(edje_edit_program_add(self.obj,
338 <const_char *>name if name is not None else NULL)) 338 <const char *>name if name is not None else NULL))
339 339
340 def program_del(self, name): 340 def program_del(self, name):
341 if isinstance(name, unicode): name = name.encode("UTF-8") 341 if isinstance(name, unicode): name = name.encode("UTF-8")
342 return bool(edje_edit_program_del(self.obj, 342 return bool(edje_edit_program_del(self.obj,
343 <const_char *>name if name is not None else NULL)) 343 <const char *>name if name is not None else NULL))
344 344
345 def program_exist(self, name): 345 def program_exist(self, name):
346 if isinstance(name, unicode): name = name.encode("UTF-8") 346 if isinstance(name, unicode): name = name.encode("UTF-8")
347 return bool(edje_edit_program_exist(self.obj, 347 return bool(edje_edit_program_exist(self.obj,
348 <const_char *>name if name is not None else NULL)) 348 <const char *>name if name is not None else NULL))
349 """ 349 """
350 property error: 350 property error:
351 def __get__(self): 351 def __get__(self):
@@ -378,7 +378,7 @@ cdef class EdjeEdit(Edje):
378 378
379 property script_errors: 379 property script_errors:
380 def __get__(self): 380 def __get__(self):
381 cdef const_Eina_List *lst 381 cdef const Eina_List *lst
382 cdef Edje_Edit_Script_Error *se 382 cdef Edje_Edit_Script_Error *se
383 ret = [] 383 ret = []
384 lst = edje_edit_script_error_list_get(self.obj) 384 lst = edje_edit_script_error_list_get(self.obj)
@@ -396,7 +396,7 @@ cdef class EdjeEdit(Edje):
396 396
397cdef class Text_Style(object): 397cdef class Text_Style(object):
398 cdef EdjeEdit edje 398 cdef EdjeEdit edje
399 cdef const_char *name 399 cdef const char *name
400 400
401 def __init__(self, EdjeEdit e not None, name not None): 401 def __init__(self, EdjeEdit e not None, name not None):
402 if isinstance(name, unicode): name = name.encode("UTF-8") 402 if isinstance(name, unicode): name = name.encode("UTF-8")
@@ -420,17 +420,17 @@ cdef class Text_Style(object):
420 def tag_add(self, name not None): 420 def tag_add(self, name not None):
421 if isinstance(name, unicode): name = name.encode("UTF-8") 421 if isinstance(name, unicode): name = name.encode("UTF-8")
422 return bool(edje_edit_style_tag_add(self.edje.obj, self.name, 422 return bool(edje_edit_style_tag_add(self.edje.obj, self.name,
423 <const_char *>name)) 423 <const char *>name))
424 424
425 def tag_del(self, name not None): 425 def tag_del(self, name not None):
426 if isinstance(name, unicode): name = name.encode("UTF-8") 426 if isinstance(name, unicode): name = name.encode("UTF-8")
427 edje_edit_style_tag_del(self.edje.obj, self.name, <const_char *>name) 427 edje_edit_style_tag_del(self.edje.obj, self.name, <const char *>name)
428 return True 428 return True
429 429
430 430
431cdef class Text_Style_Tag(object): 431cdef class Text_Style_Tag(object):
432 cdef Text_Style text_style 432 cdef Text_Style text_style
433 cdef const_char *name 433 cdef const char *name
434 434
435 def __init__(self, Text_Style text_style not None, name not None): 435 def __init__(self, Text_Style text_style not None, name not None):
436 if isinstance(name, unicode): name = name.encode("UTF-8") 436 if isinstance(name, unicode): name = name.encode("UTF-8")
@@ -451,13 +451,13 @@ cdef class Text_Style_Tag(object):
451 if isinstance(newname, unicode): newname = newname.encode("UTF-8") 451 if isinstance(newname, unicode): newname = newname.encode("UTF-8")
452 edje_edit_style_tag_name_set(self.text_style.edje.obj, 452 edje_edit_style_tag_name_set(self.text_style.edje.obj,
453 self.text_style.name, self.name, 453 self.text_style.name, self.name,
454 <const_char *>newname) 454 <const char *>newname)
455 eina_stringshare_replace(&self.name, <const_char *>newname) 455 eina_stringshare_replace(&self.name, <const char *>newname)
456 return True 456 return True
457 457
458 property value: 458 property value:
459 def __get__(self): 459 def __get__(self):
460 cdef const_char *val 460 cdef const char *val
461 val = edje_edit_style_tag_value_get(self.text_style.edje.obj, 461 val = edje_edit_style_tag_value_get(self.text_style.edje.obj,
462 self.text_style.name, self.name) 462 self.text_style.name, self.name)
463 ret = _ctouni(val) 463 ret = _ctouni(val)
@@ -467,13 +467,13 @@ cdef class Text_Style_Tag(object):
467 if isinstance(value, unicode): value = value.encode("UTF-8") 467 if isinstance(value, unicode): value = value.encode("UTF-8")
468 edje_edit_style_tag_value_set(self.text_style.edje.obj, 468 edje_edit_style_tag_value_set(self.text_style.edje.obj,
469 self.text_style.name, self.name, 469 self.text_style.name, self.name,
470 <const_char *>value if value is not None else NULL) 470 <const char *>value if value is not None else NULL)
471 471
472 472
473 473
474cdef class Color_Class(object): 474cdef class Color_Class(object):
475 cdef EdjeEdit edje 475 cdef EdjeEdit edje
476 cdef const_char *name 476 cdef const char *name
477 477
478 def __init__(self, EdjeEdit e not None, name not None): 478 def __init__(self, EdjeEdit e not None, name not None):
479 if isinstance(name, unicode): name = name.encode("UTF-8") 479 if isinstance(name, unicode): name = name.encode("UTF-8")
@@ -494,10 +494,10 @@ cdef class Color_Class(object):
494 cdef Eina_Bool ret 494 cdef Eina_Bool ret
495 if isinstance(newname, unicode): newname = newname.encode("UTF-8") 495 if isinstance(newname, unicode): newname = newname.encode("UTF-8")
496 ret = edje_edit_color_class_name_set(self.edje.obj, self.name, 496 ret = edje_edit_color_class_name_set(self.edje.obj, self.name,
497 <const_char *>newname) 497 <const char *>newname)
498 if ret == 0: 498 if ret == 0:
499 return False 499 return False
500 eina_stringshare_replace(&self.name, <const_char *>newname) 500 eina_stringshare_replace(&self.name, <const char *>newname)
501 return True 501 return True
502 502
503 def colors_get(self): 503 def colors_get(self):
diff --git a/efl/edje/efl.edje_edit_group.pxi b/efl/edje/efl.edje_edit_group.pxi
index 70fba43..7423bcb 100644
--- a/efl/edje/efl.edje_edit_group.pxi
+++ b/efl/edje/efl.edje_edit_group.pxi
@@ -51,5 +51,5 @@ cdef class Group(object):
51 51
52 def rename(self, name not None): 52 def rename(self, name not None):
53 if isinstance(name, unicode): name = name.encode("UTF-8") 53 if isinstance(name, unicode): name = name.encode("UTF-8")
54 return bool(edje_edit_group_name_set(self.edje.obj, <const_char *>name)) 54 return bool(edje_edit_group_name_set(self.edje.obj, <const char *>name))
55 55
diff --git a/efl/edje/efl.edje_edit_part.pxi b/efl/edje/efl.edje_edit_part.pxi
index 35dc6ea..84c5b41 100644
--- a/efl/edje/efl.edje_edit_part.pxi
+++ b/efl/edje/efl.edje_edit_part.pxi
@@ -18,7 +18,7 @@
18 18
19cdef class Part(object): 19cdef class Part(object):
20 cdef EdjeEdit edje 20 cdef EdjeEdit edje
21 cdef const_char *name 21 cdef const char *name
22 22
23 def __init__(self, EdjeEdit e not None, name not None): 23 def __init__(self, EdjeEdit e not None, name not None):
24 if isinstance(name, unicode): name = name.encode("UTF-8") 24 if isinstance(name, unicode): name = name.encode("UTF-8")
@@ -38,15 +38,15 @@ cdef class Part(object):
38 cdef Eina_Bool ret 38 cdef Eina_Bool ret
39 if isinstance(newname, unicode): newname = newname.encode("UTF-8") 39 if isinstance(newname, unicode): newname = newname.encode("UTF-8")
40 ret = edje_edit_part_name_set(self.edje.obj, self.name, 40 ret = edje_edit_part_name_set(self.edje.obj, self.name,
41 <const_char *>newname if newname is not None else NULL) 41 <const char *>newname if newname is not None else NULL)
42 if ret == 0: 42 if ret == 0:
43 return False 43 return False
44 eina_stringshare_replace(&self.name, <const_char *>newname) 44 eina_stringshare_replace(&self.name, <const char *>newname)
45 return True 45 return True
46 46
47 def above_get(self): 47 def above_get(self):
48 cdef: 48 cdef:
49 const_char *part 49 const char *part
50 object ret 50 object ret
51 part = edje_edit_part_above_get(self.edje.obj, self.name) 51 part = edje_edit_part_above_get(self.edje.obj, self.name)
52 ret = _ctouni(part) 52 ret = _ctouni(part)
@@ -55,7 +55,7 @@ cdef class Part(object):
55 55
56 def below_get(self): 56 def below_get(self):
57 cdef: 57 cdef:
58 const_char *part 58 const char *part
59 object ret 59 object ret
60 part = edje_edit_part_below_get(self.edje.obj, self.name) 60 part = edje_edit_part_below_get(self.edje.obj, self.name)
61 ret = _ctouni(part) 61 ret = _ctouni(part)
@@ -88,30 +88,30 @@ cdef class Part(object):
88 def state_add(self, sname, double value=0.0): 88 def state_add(self, sname, double value=0.0):
89 if isinstance(sname, unicode): sname = sname.encode("UTF-8") 89 if isinstance(sname, unicode): sname = sname.encode("UTF-8")
90 return bool(edje_edit_state_add(self.edje.obj, self.name, 90 return bool(edje_edit_state_add(self.edje.obj, self.name,
91 <const_char *>sname if sname is not None else NULL, 91 <const char *>sname if sname is not None else NULL,
92 value)) 92 value))
93 93
94 def state_del(self, sname, double value=0.0): 94 def state_del(self, sname, double value=0.0):
95 if isinstance(sname, unicode): sname = sname.encode("UTF-8") 95 if isinstance(sname, unicode): sname = sname.encode("UTF-8")
96 return bool(edje_edit_state_del(self.edje.obj, self.name, 96 return bool(edje_edit_state_del(self.edje.obj, self.name,
97 <const_char *>sname if sname is not None else NULL, 97 <const char *>sname if sname is not None else NULL,
98 value)) 98 value))
99 99
100 def state_exist(self, sname, double value=0.0): 100 def state_exist(self, sname, double value=0.0):
101 if isinstance(sname, unicode): sname = sname.encode("UTF-8") 101 if isinstance(sname, unicode): sname = sname.encode("UTF-8")
102 return bool(edje_edit_state_exist(self.edje.obj, self.name, 102 return bool(edje_edit_state_exist(self.edje.obj, self.name,
103 <const_char *>sname if sname is not None else NULL, 103 <const char *>sname if sname is not None else NULL,
104 value)) 104 value))
105 105
106 def state_copy(self, sfrom, double vfrom, sto, double vto): 106 def state_copy(self, sfrom, double vfrom, sto, double vto):
107 if isinstance(sfrom, unicode): sfrom = sfrom.encode("UTF-8") 107 if isinstance(sfrom, unicode): sfrom = sfrom.encode("UTF-8")
108 if isinstance(sto, unicode): sto = sto.encode("UTF-8") 108 if isinstance(sto, unicode): sto = sto.encode("UTF-8")
109 return bool(edje_edit_state_copy(self.edje.obj, self.name, 109 return bool(edje_edit_state_copy(self.edje.obj, self.name,
110 <const_char *>sfrom if sfrom is not None else NULL, vfrom, 110 <const char *>sfrom if sfrom is not None else NULL, vfrom,
111 <const_char *>sto if sto is not None else NULL, vto)) 111 <const char *>sto if sto is not None else NULL, vto))
112 112
113 def state_selected_get(self): 113 def state_selected_get(self):
114 cdef const_char *sel 114 cdef const char *sel
115 cdef double val 115 cdef double val
116 sel = edje_edit_part_selected_state_get(self.edje.obj, self.name, &val) 116 sel = edje_edit_part_selected_state_get(self.edje.obj, self.name, &val)
117 if sel == NULL: return None 117 if sel == NULL: return None
@@ -123,12 +123,12 @@ cdef class Part(object):
123 def state_selected_set(self, state, double value=0.0): 123 def state_selected_set(self, state, double value=0.0):
124 if isinstance(state, unicode): state = state.encode("UTF-8") 124 if isinstance(state, unicode): state = state.encode("UTF-8")
125 edje_edit_part_selected_state_set(self.edje.obj, self.name, 125 edje_edit_part_selected_state_set(self.edje.obj, self.name,
126 <const_char *>state if state is not None else NULL, 126 <const char *>state if state is not None else NULL,
127 value) 127 value)
128 128
129 property clip_to: 129 property clip_to:
130 def __get__(self): 130 def __get__(self):
131 cdef const_char *clipper 131 cdef const char *clipper
132 clipper = edje_edit_part_clip_to_get(self.edje.obj, self.name) 132 clipper = edje_edit_part_clip_to_get(self.edje.obj, self.name)
133 ret = _ctouni(clipper) 133 ret = _ctouni(clipper)
134 edje_edit_string_free(clipper) 134 edje_edit_string_free(clipper)
@@ -137,14 +137,14 @@ cdef class Part(object):
137 def __set__(self, clipper): 137 def __set__(self, clipper):
138 if isinstance(clipper, unicode): clipper = clipper.encode("UTF-8") 138 if isinstance(clipper, unicode): clipper = clipper.encode("UTF-8")
139 edje_edit_part_clip_to_set(self.edje.obj, self.name, 139 edje_edit_part_clip_to_set(self.edje.obj, self.name,
140 <const_char *>clipper if clipper is not None else NULL) 140 <const char *>clipper if clipper is not None else NULL)
141 141
142 def __del__(self): 142 def __del__(self):
143 edje_edit_part_clip_to_set(self.edje.obj, self.name, NULL) 143 edje_edit_part_clip_to_set(self.edje.obj, self.name, NULL)
144 144
145 property source: 145 property source:
146 def __get__(self): 146 def __get__(self):
147 cdef const_char *source 147 cdef const char *source
148 source = edje_edit_part_source_get(self.edje.obj, self.name) 148 source = edje_edit_part_source_get(self.edje.obj, self.name)
149 ret = _ctouni(source) 149 ret = _ctouni(source)
150 edje_edit_string_free(source) 150 edje_edit_string_free(source)
@@ -153,7 +153,7 @@ cdef class Part(object):
153 def __set__(self, source): 153 def __set__(self, source):
154 if isinstance(source, unicode): source = source.encode("UTF-8") 154 if isinstance(source, unicode): source = source.encode("UTF-8")
155 edje_edit_part_source_set(self.edje.obj, self.name, 155 edje_edit_part_source_set(self.edje.obj, self.name,
156 <const_char *>source if source is not None else NULL) 156 <const char *>source if source is not None else NULL)
157 157
158 def __del__(self): 158 def __del__(self):
159 edje_edit_part_source_set(self.edje.obj, self.name, NULL) 159 edje_edit_part_source_set(self.edje.obj, self.name, NULL)
@@ -234,7 +234,7 @@ cdef class Part(object):
234 234
235 property drag_confine: 235 property drag_confine:
236 def __get__(self): 236 def __get__(self):
237 cdef const_char *confine 237 cdef const char *confine
238 confine = edje_edit_part_drag_confine_get(self.edje.obj, self.name) 238 confine = edje_edit_part_drag_confine_get(self.edje.obj, self.name)
239 ret = _ctouni(confine) 239 ret = _ctouni(confine)
240 edje_edit_string_free(confine) 240 edje_edit_string_free(confine)
@@ -243,11 +243,11 @@ cdef class Part(object):
243 def __set__(self, confine): 243 def __set__(self, confine):
244 if isinstance(confine, unicode): confine = confine.encode("UTF-8") 244 if isinstance(confine, unicode): confine = confine.encode("UTF-8")
245 edje_edit_part_drag_confine_set(self.edje.obj, self.name, 245 edje_edit_part_drag_confine_set(self.edje.obj, self.name,
246 <const_char *>confine if confine is not None else NULL) 246 <const char *>confine if confine is not None else NULL)
247 247
248 property drag_event: 248 property drag_event:
249 def __get__(self): 249 def __get__(self):
250 cdef const_char *event 250 cdef const char *event
251 event = edje_edit_part_drag_event_get(self.edje.obj, self.name) 251 event = edje_edit_part_drag_event_get(self.edje.obj, self.name)
252 ret = _ctouni(event) 252 ret = _ctouni(event)
253 edje_edit_string_free(event) 253 edje_edit_string_free(event)
@@ -256,13 +256,13 @@ cdef class Part(object):
256 def __set__(self, event): 256 def __set__(self, event):
257 if isinstance(event, unicode): event = event.encode("UTF-8") 257 if isinstance(event, unicode): event = event.encode("UTF-8")
258 edje_edit_part_drag_event_set(self.edje.obj, self.name, 258 edje_edit_part_drag_event_set(self.edje.obj, self.name,
259 <const_char *>event if event is not None else NULL) 259 <const char *>event if event is not None else NULL)
260 260
261 property api: 261 property api:
262 def __get__(self): 262 def __get__(self):
263 cdef: 263 cdef:
264 const_char *name 264 const char *name
265 const_char *desc 265 const char *desc
266 name = edje_edit_part_api_name_get(self.edje.obj, self.name) 266 name = edje_edit_part_api_name_get(self.edje.obj, self.name)
267 desc = edje_edit_part_api_description_get(self.edje.obj, self.name) 267 desc = edje_edit_part_api_description_get(self.edje.obj, self.name)
268 n, d = _ctouni(name), _ctouni(desc) 268 n, d = _ctouni(name), _ctouni(desc)
@@ -276,6 +276,6 @@ cdef class Part(object):
276 if isinstance(name, unicode): name = name.encode("UTF-8") 276 if isinstance(name, unicode): name = name.encode("UTF-8")
277 if isinstance(desc, unicode): desc = desc.encode("UTF-8") 277 if isinstance(desc, unicode): desc = desc.encode("UTF-8")
278 edje_edit_part_api_name_set(self.edje.obj, self.name, 278 edje_edit_part_api_name_set(self.edje.obj, self.name,
279 <const_char *>name if name is not None else NULL) 279 <const char *>name if name is not None else NULL)
280 edje_edit_part_api_description_set(self.edje.obj, self.name, 280 edje_edit_part_api_description_set(self.edje.obj, self.name,
281 <const_char *>desc if desc is not None else NULL) 281 <const char *>desc if desc is not None else NULL)
diff --git a/efl/edje/efl.edje_edit_part_state.pxi b/efl/edje/efl.edje_edit_part_state.pxi
index bcd7be5..149de2c 100644
--- a/efl/edje/efl.edje_edit_part_state.pxi
+++ b/efl/edje/efl.edje_edit_part_state.pxi
@@ -19,7 +19,7 @@
19cdef class State: 19cdef class State:
20 cdef EdjeEdit edje 20 cdef EdjeEdit edje
21 cdef object part 21 cdef object part
22 cdef const_char *name 22 cdef const char *name
23 cdef object part_obj 23 cdef object part_obj
24 cdef object value 24 cdef object value
25 25
@@ -51,11 +51,11 @@ cdef class State:
51 if isinstance(new_name, unicode): new_name = new_name.encode("UTF-8") 51 if isinstance(new_name, unicode): new_name = new_name.encode("UTF-8")
52 ret = edje_edit_state_name_set(self.edje.obj, self.part, 52 ret = edje_edit_state_name_set(self.edje.obj, self.part,
53 self.name, self.value, 53 self.name, self.value,
54 <const_char *>new_name if new_name is not None else NULL, 54 <const char *>new_name if new_name is not None else NULL,
55 new_value if new_value is not None else self.value) 55 new_value if new_value is not None else self.value)
56 if ret == 0: 56 if ret == 0:
57 return False 57 return False
58 eina_stringshare_replace(&self.name, <const_char *>new_name) 58 eina_stringshare_replace(&self.name, <const char *>new_name)
59 return True 59 return True
60 """ 60 """
61 def copy_from(self, from_state, from_value=0.0): 61 def copy_from(self, from_state, from_value=0.0):
@@ -65,8 +65,8 @@ cdef class State:
65 """ 65 """
66 def rel1_to_get(self): 66 def rel1_to_get(self):
67 cdef: 67 cdef:
68 const_char *tx 68 const char *tx
69 const_char *ty 69 const char *ty
70 70
71 tx = edje_edit_state_rel1_to_x_get(self.edje.obj, self.part, self.name, 71 tx = edje_edit_state_rel1_to_x_get(self.edje.obj, self.part, self.name,
72 self.value) 72 self.value)
@@ -188,7 +188,7 @@ cdef class State:
188 self.value, y) 188 self.value, y)
189 189
190 def rel2_to_get(self): 190 def rel2_to_get(self):
191 cdef const_char_ptr tx, ty 191 cdef const char_ptr tx, ty
192 tx = edje_edit_state_rel2_to_x_get(self.edje.obj, self.part, self.name, 192 tx = edje_edit_state_rel2_to_x_get(self.edje.obj, self.part, self.name,
193 self.value) 193 self.value)
194 ty = edje_edit_state_rel2_to_y_get(self.edje.obj, self.part, self.name, 194 ty = edje_edit_state_rel2_to_y_get(self.edje.obj, self.part, self.name,
@@ -505,7 +505,7 @@ cdef class State:
505 edje_edit_state_visible_set(self.edje.obj, self.part, self.name, self.value, 0) 505 edje_edit_state_visible_set(self.edje.obj, self.part, self.name, self.value, 0)
506 506
507 def color_class_get(self): 507 def color_class_get(self):
508 cdef const_char_ptr cc 508 cdef const char_ptr cc
509 cc = edje_edit_state_color_class_get(self.edje.obj, self.part, 509 cc = edje_edit_state_color_class_get(self.edje.obj, self.part,
510 self.name, self.value) 510 self.name, self.value)
511 if cc == NULL: 511 if cc == NULL:
@@ -523,7 +523,7 @@ cdef class State:
523 self.name, self.value, cc) 523 self.name, self.value, cc)
524 524
525 def external_params_get(self): 525 def external_params_get(self):
526 cdef evas.c_evas.const_Eina_List *lst 526 cdef evas.c_evas.const Eina_List *lst
527 ret = [] 527 ret = []
528 lst = edje_edit_state_external_params_list_get(self.edje.obj, self.part, 528 lst = edje_edit_state_external_params_list_get(self.edje.obj, self.part,
529 self.name, self.value) 529 self.name, self.value)
@@ -537,7 +537,7 @@ cdef class State:
537 def external_param_get(self, param): 537 def external_param_get(self, param):
538 cdef c_edje.Edje_External_Param_Type type 538 cdef c_edje.Edje_External_Param_Type type
539 cdef void *value 539 cdef void *value
540 cdef const_char_ptr s 540 cdef const char_ptr s
541 541
542 if not edje_edit_state_external_param_get(self.edje.obj, self.part, 542 if not edje_edit_state_external_param_get(self.edje.obj, self.part,
543 self.name, self.value, param, 543 self.name, self.value, param,
@@ -567,7 +567,7 @@ cdef class State:
567 return None 567 return None
568 568
569 def external_param_set(self, param, value): 569 def external_param_set(self, param, value):
570 cdef const_char_ptr expected 570 cdef const char_ptr expected
571 571
572 if isinstance(value, bool): 572 if isinstance(value, bool):
573 return self.external_param_bool_set(param, value) 573 return self.external_param_bool_set(param, value)
@@ -620,7 +620,7 @@ cdef class State:
620 return value 620 return value
621 621
622 def external_param_string_get(self, param): 622 def external_param_string_get(self, param):
623 cdef const_char_ptr value 623 cdef const char_ptr value
624 624
625 if not edje_edit_state_external_param_string_get( 625 if not edje_edit_state_external_param_string_get(
626 self.edje.obj, self.part, self.name, self.value, param, &value): 626 self.edje.obj, self.part, self.name, self.value, param, &value):
@@ -629,7 +629,7 @@ cdef class State:
629 return value 629 return value
630 630
631 def external_param_choice_get(self, param): 631 def external_param_choice_get(self, param):
632 cdef const_char_ptr value 632 cdef const char_ptr value
633 633
634 if not edje_edit_state_external_param_choice_get( 634 if not edje_edit_state_external_param_choice_get(
635 self.edje.obj, self.part, self.name, self.value, param, &value): 635 self.edje.obj, self.part, self.name, self.value, param, &value):
@@ -664,7 +664,7 @@ cdef class State:
664 self.edje.obj, self.part, self.name, self.value, param, value)) 664 self.edje.obj, self.part, self.name, self.value, param, value))
665 665
666 def text_get(self): 666 def text_get(self):
667 cdef const_char_ptr t 667 cdef const char_ptr t
668 t = edje_edit_state_text_get(self.edje.obj, self.part, self.name, 668 t = edje_edit_state_text_get(self.edje.obj, self.part, self.name,
669 self.value) 669 self.value)
670 if t == NULL: 670 if t == NULL:
@@ -684,7 +684,7 @@ cdef class State:
684 self.text_set(text) 684 self.text_set(text)
685 685
686 def font_get(self): 686 def font_get(self):
687 cdef const_char_ptr f 687 cdef const char_ptr f
688 f = edje_edit_state_font_get(self.edje.obj, self.part, self.name, 688 f = edje_edit_state_font_get(self.edje.obj, self.part, self.name,
689 self.value) 689 self.value)
690 if f == NULL: 690 if f == NULL:
@@ -779,7 +779,7 @@ cdef class State:
779 self.text_fit_set(*value) 779 self.text_fit_set(*value)
780 780
781 def image_get(self): 781 def image_get(self):
782 cdef const_char_ptr img 782 cdef const char_ptr img
783 img = edje_edit_state_image_get(self.edje.obj, self.part, self.name, 783 img = edje_edit_state_image_get(self.edje.obj, self.part, self.name,
784 self.value) 784 self.value)
785 if img == NULL: 785 if img == NULL:
diff --git a/efl/edje/efl.edje_edit_program.pxi b/efl/edje/efl.edje_edit_program.pxi
index aeca1fe..84323d4 100644
--- a/efl/edje/efl.edje_edit_program.pxi
+++ b/efl/edje/efl.edje_edit_program.pxi
@@ -18,7 +18,7 @@
18 18
19cdef class Program(object): 19cdef class Program(object):
20 cdef EdjeEdit edje 20 cdef EdjeEdit edje
21 cdef const_char *name 21 cdef const char *name
22 22
23 def __init__(self, EdjeEdit e not None, name not None): 23 def __init__(self, EdjeEdit e not None, name not None):
24 if isinstance(name, unicode): name = name.encode("UTF-8") 24 if isinstance(name, unicode): name = name.encode("UTF-8")
@@ -38,10 +38,10 @@ cdef class Program(object):
38 cdef Eina_Bool ret 38 cdef Eina_Bool ret
39 if isinstance(newname, unicode): newname = newname.encode("UTF-8") 39 if isinstance(newname, unicode): newname = newname.encode("UTF-8")
40 ret = edje_edit_program_name_set(self.edje.obj, self.name, 40 ret = edje_edit_program_name_set(self.edje.obj, self.name,
41 <const_char *>newname if newname is not None else NULL) 41 <const char *>newname if newname is not None else NULL)
42 if ret == 0: 42 if ret == 0:
43 return False 43 return False
44 eina_stringshare_replace(&self.name, <const_char *>newname) 44 eina_stringshare_replace(&self.name, <const char *>newname)
45 return True 45 return True
46 46
47 def edje_get(self): 47 def edje_get(self):
@@ -53,7 +53,7 @@ cdef class Program(object):
53 # XXX TODO: add (or better convert) all this to properties 53 # XXX TODO: add (or better convert) all this to properties
54 # like is done in Part() 54 # like is done in Part()
55 def source_get(self): 55 def source_get(self):
56 cdef const_char *s 56 cdef const char *s
57 s = edje_edit_program_source_get(self.edje.obj, self.name) 57 s = edje_edit_program_source_get(self.edje.obj, self.name)
58 ret = _ctouni(s) 58 ret = _ctouni(s)
59 edje_edit_string_free(s) 59 edje_edit_string_free(s)
@@ -62,10 +62,10 @@ cdef class Program(object):
62 def source_set(self, source): 62 def source_set(self, source):
63 if isinstance(source, unicode): source = source.encode("UTF-8") 63 if isinstance(source, unicode): source = source.encode("UTF-8")
64 return bool(edje_edit_program_source_set(self.edje.obj, self.name, 64 return bool(edje_edit_program_source_set(self.edje.obj, self.name,
65 <const_char *>source if source is not None else NULL)) 65 <const char *>source if source is not None else NULL))
66 66
67 def signal_get(self): 67 def signal_get(self):
68 cdef const_char *s 68 cdef const char *s
69 s = edje_edit_program_signal_get(self.edje.obj, self.name) 69 s = edje_edit_program_signal_get(self.edje.obj, self.name)
70 ret = _ctouni(s) 70 ret = _ctouni(s)
71 edje_edit_string_free(s) 71 edje_edit_string_free(s)
@@ -74,7 +74,7 @@ cdef class Program(object):
74 def signal_set(self, signal): 74 def signal_set(self, signal):
75 if isinstance(signal, unicode): signal = signal.encode("UTF-8") 75 if isinstance(signal, unicode): signal = signal.encode("UTF-8")
76 return bool(edje_edit_program_signal_set(self.edje.obj, self.name, 76 return bool(edje_edit_program_signal_set(self.edje.obj, self.name,
77 <const_char *>signal if signal is not None else NULL)) 77 <const char *>signal if signal is not None else NULL))
78 78
79 def in_from_get(self): 79 def in_from_get(self):
80 return edje_edit_program_in_from_get(self.edje.obj, self.name) 80 return edje_edit_program_in_from_get(self.edje.obj, self.name)
@@ -106,12 +106,12 @@ cdef class Program(object):
106 def target_add(self, target): 106 def target_add(self, target):
107 if isinstance(target, unicode): target = target.encode("UTF-8") 107 if isinstance(target, unicode): target = target.encode("UTF-8")
108 return bool(edje_edit_program_target_add(self.edje.obj, self.name, 108 return bool(edje_edit_program_target_add(self.edje.obj, self.name,
109 <const_char *>target if target is not None else NULL)) 109 <const char *>target if target is not None else NULL))
110 110
111 def target_del(self, target): 111 def target_del(self, target):
112 if isinstance(target, unicode): target = target.encode("UTF-8") 112 if isinstance(target, unicode): target = target.encode("UTF-8")
113 return bool(edje_edit_program_target_del(self.edje.obj, self.name, 113 return bool(edje_edit_program_target_del(self.edje.obj, self.name,
114 <const_char *>target if target is not None else NULL)) 114 <const char *>target if target is not None else NULL))
115 115
116 def targets_clear(self): 116 def targets_clear(self):
117 return bool(edje_edit_program_targets_clear(self.edje.obj, self.name)) 117 return bool(edje_edit_program_targets_clear(self.edje.obj, self.name))
@@ -126,18 +126,18 @@ cdef class Program(object):
126 def after_add(self, after): 126 def after_add(self, after):
127 if isinstance(after, unicode): after = after.encode("UTF-8") 127 if isinstance(after, unicode): after = after.encode("UTF-8")
128 return bool(edje_edit_program_after_add(self.edje.obj, self.name, 128 return bool(edje_edit_program_after_add(self.edje.obj, self.name,
129 <const_char *>after if after is not None else NULL)) 129 <const char *>after if after is not None else NULL))
130 130
131 def after_del(self, after): 131 def after_del(self, after):
132 if isinstance(after, unicode): after = after.encode("UTF-8") 132 if isinstance(after, unicode): after = after.encode("UTF-8")
133 return bool(edje_edit_program_after_del(self.edje.obj, self.name, 133 return bool(edje_edit_program_after_del(self.edje.obj, self.name,
134 <const_char *>after if after is not None else NULL)) 134 <const char *>after if after is not None else NULL))
135 135
136 def afters_clear(self): 136 def afters_clear(self):
137 return bool(edje_edit_program_afters_clear(self.edje.obj, self.name)) 137 return bool(edje_edit_program_afters_clear(self.edje.obj, self.name))
138 138
139 def state_get(self): 139 def state_get(self):
140 cdef const_char *s 140 cdef const char *s
141 s = edje_edit_program_state_get(self.edje.obj, self.name) 141 s = edje_edit_program_state_get(self.edje.obj, self.name)
142 ret = _ctouni(s) 142 ret = _ctouni(s)
143 edje_edit_string_free(s) 143 edje_edit_string_free(s)
@@ -146,7 +146,7 @@ cdef class Program(object):
146 def state_set(self, state): 146 def state_set(self, state):
147 if isinstance(state, unicode): state = state.encode("UTF-8") 147 if isinstance(state, unicode): state = state.encode("UTF-8")
148 return bool(edje_edit_program_state_set(self.edje.obj, self.name, 148 return bool(edje_edit_program_state_set(self.edje.obj, self.name,
149 <const_char *>state if state is not None else NULL)) 149 <const char *>state if state is not None else NULL))
150 150
151 def value_get(self): 151 def value_get(self):
152 return edje_edit_program_value_get(self.edje.obj, self.name) 152 return edje_edit_program_value_get(self.edje.obj, self.name)
@@ -155,7 +155,7 @@ cdef class Program(object):
155 return bool(edje_edit_program_value_set(self.edje.obj, self.name, v)) 155 return bool(edje_edit_program_value_set(self.edje.obj, self.name, v))
156 156
157 def state2_get(self): 157 def state2_get(self):
158 cdef const_char *s 158 cdef const char *s
159 s = edje_edit_program_state2_get(self.edje.obj, self.name) 159 s = edje_edit_program_state2_get(self.edje.obj, self.name)
160 ret = _ctouni(s) 160 ret = _ctouni(s)
161 edje_edit_string_free(s) 161 edje_edit_string_free(s)
@@ -164,7 +164,7 @@ cdef class Program(object):
164 def state2_set(self, state): 164 def state2_set(self, state):
165 if isinstance(state, unicode): state = state.encode("UTF-8") 165 if isinstance(state, unicode): state = state.encode("UTF-8")
166 return bool(edje_edit_program_state2_set(self.edje.obj, self.name, 166 return bool(edje_edit_program_state2_set(self.edje.obj, self.name,
167 <const_char *>state if state is not None else NULL)) 167 <const char *>state if state is not None else NULL))
168 168
169 def value2_get(self): 169 def value2_get(self):
170 return edje_edit_program_value2_get(self.edje.obj, self.name) 170 return edje_edit_program_value2_get(self.edje.obj, self.name)
@@ -187,8 +187,8 @@ cdef class Program(object):
187 property api: 187 property api:
188 def __get__(self): 188 def __get__(self):
189 cdef: 189 cdef:
190 const_char *name 190 const char *name
191 const_char *desc 191 const char *desc
192 name = edje_edit_program_api_name_get(self.edje.obj, self.name) 192 name = edje_edit_program_api_name_get(self.edje.obj, self.name)
193 desc = edje_edit_program_api_description_get(self.edje.obj, self.name) 193 desc = edje_edit_program_api_description_get(self.edje.obj, self.name)
194 n, d = _ctouni(name), _ctouni(desc) 194 n, d = _ctouni(name), _ctouni(desc)
@@ -202,9 +202,9 @@ cdef class Program(object):
202 if isinstance(name, unicode): name = name.encode("UTF-8") 202 if isinstance(name, unicode): name = name.encode("UTF-8")
203 if isinstance(desc, unicode): desc = desc.encode("UTF-8") 203 if isinstance(desc, unicode): desc = desc.encode("UTF-8")
204 edje_edit_program_api_name_set(self.edje.obj, self.name, 204 edje_edit_program_api_name_set(self.edje.obj, self.name,
205 <const_char *>name if name is not None else NULL) 205 <const char *>name if name is not None else NULL)
206 edje_edit_program_api_description_set(self.edje.obj, self.name, 206 edje_edit_program_api_description_set(self.edje.obj, self.name,
207 <const_char *>desc if desc is not None else NULL) 207 <const char *>desc if desc is not None else NULL)
208 208
209 property script: 209 property script:
210 def __get__(self): 210 def __get__(self):
@@ -217,7 +217,7 @@ cdef class Program(object):
217 def __set__(self, code): 217 def __set__(self, code):
218 if isinstance(code, unicode): code = code.encode("UTF-8") 218 if isinstance(code, unicode): code = code.encode("UTF-8")
219 edje_edit_script_program_set(self.edje.obj, self.name, 219 edje_edit_script_program_set(self.edje.obj, self.name,
220 <const_char *>code if code is not None else NULL) 220 <const char *>code if code is not None else NULL)
221 221
222 def __del__(self): 222 def __del__(self):
223 edje_edit_script_program_set(self.edje.obj, self.name, NULL) 223 edje_edit_script_program_set(self.edje.obj, self.name, NULL)
diff --git a/efl/edje/efl.edje_external.pxi b/efl/edje/efl.edje_external.pxi
index e73886e..316bf06 100644
--- a/efl/edje/efl.edje_external.pxi
+++ b/efl/edje/efl.edje_external.pxi
@@ -91,7 +91,7 @@ cdef class ExternalParamInfo:
91 91
92 property translated_name: 92 property translated_name:
93 def __get__(self): 93 def __get__(self):
94 cdef const_char *t 94 cdef const char *t
95 if self._external_type_obj == NULL or \ 95 if self._external_type_obj == NULL or \
96 self._external_type_obj.translate == NULL: 96 self._external_type_obj.translate == NULL:
97 return self.name 97 return self.name
@@ -195,7 +195,7 @@ cdef class ExternalParamInfoString(ExternalParamInfo):
195 195
196 property translated_default: 196 property translated_default:
197 def __get__(self): 197 def __get__(self):
198 cdef const_char *t 198 cdef const char *t
199 if self._external_type_obj == NULL or \ 199 if self._external_type_obj == NULL or \
200 self._external_type_obj.translate == NULL: 200 self._external_type_obj.translate == NULL:
201 return self.default 201 return self.default
@@ -231,7 +231,7 @@ cdef class ExternalParamInfoBool(ExternalParamInfo):
231 231
232 property translated_false_string: 232 property translated_false_string:
233 def __get__(self): 233 def __get__(self):
234 cdef const_char *t 234 cdef const char *t
235 if self._external_type_obj == NULL or \ 235 if self._external_type_obj == NULL or \
236 self._external_type_obj.translate == NULL: 236 self._external_type_obj.translate == NULL:
237 return self.false_string 237 return self.false_string
@@ -249,7 +249,7 @@ cdef class ExternalParamInfoBool(ExternalParamInfo):
249 249
250 property translated_true_string: 250 property translated_true_string:
251 def __get__(self): 251 def __get__(self):
252 cdef const_char *t 252 cdef const char *t
253 if self._external_type_obj == NULL or \ 253 if self._external_type_obj == NULL or \
254 self._external_type_obj.translate == NULL: 254 self._external_type_obj.translate == NULL:
255 return self.true_string 255 return self.true_string
@@ -269,7 +269,7 @@ cdef class ExternalParamInfoChoice(ExternalParamInfo):
269 269
270 property translated_default: 270 property translated_default:
271 def __get__(self): 271 def __get__(self):
272 cdef const_char *t 272 cdef const char *t
273 if self._external_type_obj == NULL or \ 273 if self._external_type_obj == NULL or \
274 self._external_type_obj.translate == NULL: 274 self._external_type_obj.translate == NULL:
275 return self.default 275 return self.default
@@ -295,7 +295,7 @@ cdef class ExternalParamInfoChoice(ExternalParamInfo):
295 295
296 property translated_choices: 296 property translated_choices:
297 def __get__(self): 297 def __get__(self):
298 cdef const_char *t 298 cdef const char *t
299 if self._external_type_obj == NULL or \ 299 if self._external_type_obj == NULL or \
300 self._external_type_obj.translate == NULL: 300 self._external_type_obj.translate == NULL:
301 return self.choices 301 return self.choices
@@ -331,7 +331,7 @@ cdef ExternalParamInfo ExternalParamInfo_from_ptr(type, Edje_External_Param_Info
331 return p 331 return p
332 332
333def external_param_info_get(char *type_name): 333def external_param_info_get(char *type_name):
334 cdef const_Edje_External_Type *ext_type 334 cdef const Edje_External_Type *ext_type
335 cdef ExternalType t 335 cdef ExternalType t
336 336
337 warnings.warn("Use ExternalType.parameters_info_get() instead!", 337 warnings.warn("Use ExternalType.parameters_info_get() instead!",
@@ -365,7 +365,7 @@ cdef class ExternalType:
365 return self._obj.module_name 365 return self._obj.module_name
366 366
367 def label_get(self): 367 def label_get(self):
368 cdef const_char *l 368 cdef const char *l
369 if self._obj.label_get == NULL: 369 if self._obj.label_get == NULL:
370 return None 370 return None
371 l = self._obj.label_get(self._obj.data) 371 l = self._obj.label_get(self._obj.data)
@@ -375,7 +375,7 @@ cdef class ExternalType:
375 return ret 375 return ret
376 376
377 def description_get(self): 377 def description_get(self):
378 cdef const_char *l 378 cdef const char *l
379 if self._obj.description_get == NULL: 379 if self._obj.description_get == NULL:
380 return None 380 return None
381 l = self._obj.description_get(self._obj.data) 381 l = self._obj.description_get(self._obj.data)
@@ -395,7 +395,7 @@ cdef class ExternalType:
395 It will always return a string, on errors the parameter text 395 It will always return a string, on errors the parameter text
396 is returned untranslated. 396 is returned untranslated.
397 """ 397 """
398 cdef const_char *l 398 cdef const char *l
399 if self._obj.translate == NULL: 399 if self._obj.translate == NULL:
400 return text 400 return text
401 l = self._obj.translate(self._obj.data, text) 401 l = self._obj.translate(self._obj.data, text)
@@ -460,12 +460,12 @@ cdef class ExternalIterator:
460 return self 460 return self
461 461
462 def __next__(self): 462 def __next__(self):
463 cdef const_Eina_Hash_Tuple *tuple 463 cdef const Eina_Hash_Tuple *tuple
464 cdef ExternalType t 464 cdef ExternalType t
465 if eina_iterator_next(self.obj, <void **>&tuple): 465 if eina_iterator_next(self.obj, <void **>&tuple):
466 t = ExternalType() 466 t = ExternalType()
467 t._name = <char*>tuple.key 467 t._name = <char*>tuple.key
468 t._obj = <const_Edje_External_Type*>tuple.data 468 t._obj = <const Edje_External_Type*>tuple.data
469 return t 469 return t
470 else: 470 else:
471 raise StopIteration 471 raise StopIteration
@@ -476,7 +476,7 @@ cdef class ExternalIterator:
476 476
477def external_type_get(char *type_name): 477def external_type_get(char *type_name):
478 "Gets the instance that represents an ExternalType of the given name." 478 "Gets the instance that represents an ExternalType of the given name."
479 cdef const_Edje_External_Type *obj = edje_external_type_get(type_name) 479 cdef const Edje_External_Type *obj = edje_external_type_get(type_name)
480 cdef ExternalType ret 480 cdef ExternalType ret
481 if obj == NULL: 481 if obj == NULL:
482 return None 482 return None
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index 6e412d7..5b04016 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -19,7 +19,7 @@ from efl.evas cimport Object
19 19
20cdef void text_change_cb(void *data, 20cdef void text_change_cb(void *data,
21 Evas_Object *obj, 21 Evas_Object *obj,
22 const_char *part) with gil: 22 const char *part) with gil:
23 cdef Edje self 23 cdef Edje self
24 self = <Edje>data 24 self = <Edje>data
25 if self._text_change_cb is None: 25 if self._text_change_cb is None:
@@ -47,7 +47,7 @@ cdef void message_handler_cb(void *data,
47 47
48 48
49cdef void signal_cb(void *data, Evas_Object *obj, 49cdef void signal_cb(void *data, Evas_Object *obj,
50 const_char *emission, const_char *source) with gil: 50 const char *emission, const char *source) with gil:
51 cdef Edje self 51 cdef Edje self
52 self = object_from_instance(obj) 52 self = object_from_instance(obj)
53 lst = tuple(<object>data) 53 lst = tuple(<object>data)
@@ -188,7 +188,7 @@ cdef class Edje(Object):
188 """ 188 """
189 if isinstance(key, unicode): key = PyUnicode_AsUTF8String(key) 189 if isinstance(key, unicode): key = PyUnicode_AsUTF8String(key)
190 return _ctouni(edje_object_data_get(self.obj, 190 return _ctouni(edje_object_data_get(self.obj,
191 <const_char *>key if key is not None else NULL)) 191 <const char *>key if key is not None else NULL))
192 192
193 def file_set(self, file, group): 193 def file_set(self, file, group):
194 """Set the file (.edj) and the group to load the Edje object from. 194 """Set the file (.edj) and the group to load the Edje object from.
@@ -202,8 +202,8 @@ cdef class Edje(Object):
202 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file) 202 if isinstance(file, unicode): file = PyUnicode_AsUTF8String(file)
203 if isinstance(group, unicode): group = PyUnicode_AsUTF8String(group) 203 if isinstance(group, unicode): group = PyUnicode_AsUTF8String(group)
204 if edje_object_file_set(self.obj, 204 if edje_object_file_set(self.obj,
205 <const_char *>file if file is not None else NULL, 205 <const char *>file if file is not None else NULL,
206 <const_char *>group if group is not None else NULL) == 0: 206 <const char *>group if group is not None else NULL) == 0:
207 raise EdjeLoadError(edje_object_load_error_get(self.obj), file, group) 207 raise EdjeLoadError(edje_object_load_error_get(self.obj), file, group)
208 208
209 def file_get(self): 209 def file_get(self):
@@ -214,8 +214,8 @@ cdef class Edje(Object):
214 214
215 """ 215 """
216 cdef: 216 cdef:
217 const_char *file 217 const char *file
218 const_char *group 218 const char *group
219 edje_object_file_get(self.obj, &file, &group) 219 edje_object_file_get(self.obj, &file, &group)
220 return (_ctouni(file), _ctouni(group)) 220 return (_ctouni(file), _ctouni(group))
221 221
@@ -313,7 +313,7 @@ cdef class Edje(Object):
313 if isinstance(color_class, unicode): 313 if isinstance(color_class, unicode):
314 color_class = PyUnicode_AsUTF8String(color_class) 314 color_class = PyUnicode_AsUTF8String(color_class)
315 edje_object_color_class_set(self.obj, 315 edje_object_color_class_set(self.obj,
316 <const_char *>color_class if color_class is not None else NULL, 316 <const char *>color_class if color_class is not None else NULL,
317 r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3) 317 r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3)
318 318
319 def color_class_get(self, color_class): 319 def color_class_get(self, color_class):
@@ -330,7 +330,7 @@ cdef class Edje(Object):
330 if isinstance(color_class, unicode): 330 if isinstance(color_class, unicode):
331 color_class = PyUnicode_AsUTF8String(color_class) 331 color_class = PyUnicode_AsUTF8String(color_class)
332 edje_object_color_class_get(self.obj, 332 edje_object_color_class_get(self.obj,
333 <const_char *>color_class if color_class is not None else NULL, 333 <const char *>color_class if color_class is not None else NULL,
334 &r, &g, &b, &a, &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3) 334 &r, &g, &b, &a, &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3)
335 return (r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3) 335 return (r, g, b, a, r2, g2, b2, a2, r3, g3, b3, a3)
336 336
@@ -339,7 +339,7 @@ cdef class Edje(Object):
339 if isinstance(color_class, unicode): 339 if isinstance(color_class, unicode):
340 color_class = PyUnicode_AsUTF8String(color_class) 340 color_class = PyUnicode_AsUTF8String(color_class)
341 edje_object_color_class_del(self.obj, 341 edje_object_color_class_del(self.obj,
342 <const_char *>color_class if color_class is not None else NULL) 342 <const char *>color_class if color_class is not None else NULL)
343 343
344 def text_class_set(self, text_class, font, int size): 344 def text_class_set(self, text_class, font, int size):
345 """Set text class. 345 """Set text class.
@@ -353,8 +353,8 @@ cdef class Edje(Object):
353 if isinstance(font, unicode): 353 if isinstance(font, unicode):
354 font = PyUnicode_AsUTF8String(font) 354 font = PyUnicode_AsUTF8String(font)
355 edje_object_text_class_set(self.obj, 355 edje_object_text_class_set(self.obj,
356 <const_char *>text_class if text_class is not None else NULL, 356 <const char *>text_class if text_class is not None else NULL,
357 <const_char *>font if font is not None else NULL, 357 <const char *>font if font is not None else NULL,
358 size) 358 size)
359 359
360 property scale: 360 property scale:
@@ -492,7 +492,7 @@ cdef class Edje(Object):
492 ":rtype: bool" 492 ":rtype: bool"
493 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 493 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
494 return bool(edje_object_part_exists(self.obj, 494 return bool(edje_object_part_exists(self.obj,
495 <const_char *>part if part is not None else NULL)) 495 <const char *>part if part is not None else NULL))
496 496
497 def part_object_get(self, part): 497 def part_object_get(self, part):
498 """ 498 """
@@ -508,7 +508,7 @@ cdef class Edje(Object):
508 cdef Evas_Object *obj 508 cdef Evas_Object *obj
509 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 509 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
510 obj = <Evas_Object*>edje_object_part_object_get(self.obj, 510 obj = <Evas_Object*>edje_object_part_object_get(self.obj,
511 <const_char *>part if part is not None else NULL) 511 <const char *>part if part is not None else NULL)
512 return object_from_instance(obj) 512 return object_from_instance(obj)
513 513
514 def part_geometry_get(self, part): 514 def part_geometry_get(self, part):
@@ -516,7 +516,7 @@ cdef class Edje(Object):
516 cdef int x, y, w, h 516 cdef int x, y, w, h
517 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 517 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
518 edje_object_part_geometry_get(self.obj, 518 edje_object_part_geometry_get(self.obj,
519 <const_char *>part if part is not None else NULL, 519 <const char *>part if part is not None else NULL,
520 &x, &y, &w, &h) 520 &x, &y, &w, &h)
521 return (x, y, w, h) 521 return (x, y, w, h)
522 522
@@ -525,7 +525,7 @@ cdef class Edje(Object):
525 cdef int w, h 525 cdef int w, h
526 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 526 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
527 edje_object_part_geometry_get(self.obj, 527 edje_object_part_geometry_get(self.obj,
528 <const_char *>part if part is not None else NULL, 528 <const char *>part if part is not None else NULL,
529 NULL, NULL, &w, &h) 529 NULL, NULL, &w, &h)
530 return (w, h) 530 return (w, h)
531 531
@@ -534,7 +534,7 @@ cdef class Edje(Object):
534 cdef int x, y 534 cdef int x, y
535 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 535 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
536 edje_object_part_geometry_get(self.obj, 536 edje_object_part_geometry_get(self.obj,
537 <const_char *>part if part is not None else NULL, 537 <const char *>part if part is not None else NULL,
538 &x, &y, NULL, NULL) 538 &x, &y, NULL, NULL)
539 return (x, y) 539 return (x, y)
540 540
@@ -567,8 +567,8 @@ cdef class Edje(Object):
567 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 567 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
568 if isinstance(text, unicode): text = PyUnicode_AsUTF8String(text) 568 if isinstance(text, unicode): text = PyUnicode_AsUTF8String(text)
569 edje_object_part_text_set(self.obj, 569 edje_object_part_text_set(self.obj,
570 <const_char *>part if part is not None else NULL, 570 <const char *>part if part is not None else NULL,
571 <const_char *>text if text is not None else NULL) 571 <const char *>text if text is not None else NULL)
572 572
573 def part_text_get(self, part): 573 def part_text_get(self, part):
574 """Get the text of a given part. 574 """Get the text of a given part.
@@ -577,22 +577,22 @@ cdef class Edje(Object):
577 :rtype: str 577 :rtype: str
578 578
579 """ 579 """
580 cdef const_char *s 580 cdef const char *s
581 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 581 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
582 return _ctouni(edje_object_part_text_get(self.obj, 582 return _ctouni(edje_object_part_text_get(self.obj,
583 <const_char *>part if part is not None else NULL)) 583 <const char *>part if part is not None else NULL))
584 584
585 def part_text_select_all(self, part): 585 def part_text_select_all(self, part):
586 "Select all the text of the given TEXT or TEXTBLOCK part" 586 "Select all the text of the given TEXT or TEXTBLOCK part"
587 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 587 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
588 edje_object_part_text_select_all(self.obj, 588 edje_object_part_text_select_all(self.obj,
589 <const_char *>part if part is not None else NULL) 589 <const char *>part if part is not None else NULL)
590 590
591 def part_text_select_none(self, part): 591 def part_text_select_none(self, part):
592 "Deselect all the text of the given TEXT or TEXTBLOCK part" 592 "Deselect all the text of the given TEXT or TEXTBLOCK part"
593 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 593 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
594 edje_object_part_text_select_none(self.obj, 594 edje_object_part_text_select_none(self.obj,
595 <const_char *>part if part is not None else NULL) 595 <const char *>part if part is not None else NULL)
596 596
597 def part_text_unescaped_set(self, part, text_to_escape): 597 def part_text_unescaped_set(self, part, text_to_escape):
598 """Automatically escapes text if using TEXTBLOCK. 598 """Automatically escapes text if using TEXTBLOCK.
@@ -608,8 +608,8 @@ cdef class Edje(Object):
608 if isinstance(text_to_escape, unicode): 608 if isinstance(text_to_escape, unicode):
609 text_to_escape = PyUnicode_AsUTF8String(text_to_escape) 609 text_to_escape = PyUnicode_AsUTF8String(text_to_escape)
610 edje_object_part_text_unescaped_set(self.obj, 610 edje_object_part_text_unescaped_set(self.obj,
611 <const_char *>part if part is not None else NULL, 611 <const char *>part if part is not None else NULL,
612 <const_char *>text_to_escape if text_to_escape is not None else NULL) 612 <const char *>text_to_escape if text_to_escape is not None else NULL)
613 613
614 def part_text_unescaped_get(self, part): 614 def part_text_unescaped_get(self, part):
615 """Automatically removes escape from text if using TEXTBLOCK. 615 """Automatically removes escape from text if using TEXTBLOCK.
@@ -623,7 +623,7 @@ cdef class Edje(Object):
623 cdef char *s 623 cdef char *s
624 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 624 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
625 s = edje_object_part_text_unescaped_get(self.obj, 625 s = edje_object_part_text_unescaped_get(self.obj,
626 <const_char *>part if part is not None else NULL) 626 <const char *>part if part is not None else NULL)
627 if s == NULL: 627 if s == NULL:
628 return None 628 return None
629 else: 629 else:
@@ -649,7 +649,7 @@ cdef class Edje(Object):
649 """ 649 """
650 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 650 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
651 edje_object_part_swallow(self.obj, 651 edje_object_part_swallow(self.obj,
652 <const_char *>part if part is not None else NULL, obj.obj) 652 <const char *>part if part is not None else NULL, obj.obj)
653 653
654 def part_unswallow(self, Object obj): 654 def part_unswallow(self, Object obj):
655 "Unswallow the given object from the edje" 655 "Unswallow the given object from the edje"
@@ -659,13 +659,13 @@ cdef class Edje(Object):
659 ":rtype: efl.evas.Object" 659 ":rtype: efl.evas.Object"
660 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 660 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
661 return object_from_instance(edje_object_part_swallow_get( 661 return object_from_instance(edje_object_part_swallow_get(
662 self.obj, <const_char *>part if part is not None else NULL)) 662 self.obj, <const char *>part if part is not None else NULL))
663 663
664 def part_external_object_get(self, part): 664 def part_external_object_get(self, part):
665 ":rtype: efl.evas.Object" 665 ":rtype: efl.evas.Object"
666 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 666 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
667 return object_from_instance(edje_object_part_external_object_get( 667 return object_from_instance(edje_object_part_external_object_get(
668 self.obj, <const_char *>part if part is not None else NULL)) 668 self.obj, <const char *>part if part is not None else NULL))
669 669
670 def part_external_param_set(self, part, param, value): 670 def part_external_param_set(self, part, param, value):
671 """Set a parameter of the external part. 671 """Set a parameter of the external part.
@@ -677,8 +677,8 @@ cdef class Edje(Object):
677 :rtype: bool 677 :rtype: bool
678 """ 678 """
679 cdef Edje_External_Param p 679 cdef Edje_External_Param p
680 cdef const_char *c_part 680 cdef const char *c_part
681 cdef const_char *c_param 681 cdef const char *c_param
682 682
683 if isinstance(part, unicode): 683 if isinstance(part, unicode):
684 str1 = PyUnicode_AsUTF8String(part) 684 str1 = PyUnicode_AsUTF8String(part)
@@ -729,8 +729,8 @@ cdef class Edje(Object):
729 :return: *None* for errors, other values depending on the parameter type. 729 :return: *None* for errors, other values depending on the parameter type.
730 """ 730 """
731 cdef Edje_External_Param p 731 cdef Edje_External_Param p
732 cdef const_char *c_part 732 cdef const char *c_part
733 cdef const_char *c_param 733 cdef const char *c_param
734 734
735 if isinstance(part, unicode): 735 if isinstance(part, unicode):
736 str1 = PyUnicode_AsUTF8String(part) 736 str1 = PyUnicode_AsUTF8String(part)
@@ -780,7 +780,7 @@ cdef class Edje(Object):
780 """ 780 """
781 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 781 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
782 return bool(edje_object_part_box_append(self.obj, 782 return bool(edje_object_part_box_append(self.obj,
783 <const_char *>part if part is not None else NULL, obj.obj)) 783 <const char *>part if part is not None else NULL, obj.obj))
784 784
785 def part_box_prepend(self, part, Object obj): 785 def part_box_prepend(self, part, Object obj):
786 """Prepend an item to a BOX part. 786 """Prepend an item to a BOX part.
@@ -795,7 +795,7 @@ cdef class Edje(Object):
795 """ 795 """
796 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 796 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
797 return bool(edje_object_part_box_prepend(self.obj, 797 return bool(edje_object_part_box_prepend(self.obj,
798 <const_char *>part if part is not None else NULL, obj.obj)) 798 <const char *>part if part is not None else NULL, obj.obj))
799 799
800 def part_box_insert_at(self, part, Object obj, 800 def part_box_insert_at(self, part, Object obj,
801 unsigned int pos): 801 unsigned int pos):
@@ -808,7 +808,7 @@ cdef class Edje(Object):
808 """ 808 """
809 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 809 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
810 return bool(edje_object_part_box_insert_at(self.obj, 810 return bool(edje_object_part_box_insert_at(self.obj,
811 <const_char *>part if part is not None else NULL, obj.obj, pos)) 811 <const char *>part if part is not None else NULL, obj.obj, pos))
812 812
813 def part_box_insert_before(self, part, Object obj, Object reference): 813 def part_box_insert_before(self, part, Object obj, Object reference):
814 """Inserts an item in a BOX part before the reference object. 814 """Inserts an item in a BOX part before the reference object.
@@ -820,7 +820,7 @@ cdef class Edje(Object):
820 """ 820 """
821 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 821 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
822 return bool(edje_object_part_box_insert_before(self.obj, 822 return bool(edje_object_part_box_insert_before(self.obj,
823 <const_char *>part if part is not None else NULL, 823 <const char *>part if part is not None else NULL,
824 obj.obj, reference.obj)) 824 obj.obj, reference.obj))
825 825
826 def part_box_remove(self, part, Object obj): 826 def part_box_remove(self, part, Object obj):
@@ -837,7 +837,7 @@ cdef class Edje(Object):
837 """ 837 """
838 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 838 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
839 return object_from_instance(edje_object_part_box_remove(self.obj, 839 return object_from_instance(edje_object_part_box_remove(self.obj,
840 <const_char *>part if part is not None else NULL, obj.obj)) 840 <const char *>part if part is not None else NULL, obj.obj))
841 841
842 def part_box_remove_at(self, part, unsigned int pos): 842 def part_box_remove_at(self, part, unsigned int pos):
843 """Removes the object at the given position in a BOX part. 843 """Removes the object at the given position in a BOX part.
@@ -852,7 +852,7 @@ cdef class Edje(Object):
852 """ 852 """
853 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 853 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
854 return object_from_instance(edje_object_part_box_remove_at(self.obj, 854 return object_from_instance(edje_object_part_box_remove_at(self.obj,
855 <const_char *>part if part is not None else NULL, pos)) 855 <const char *>part if part is not None else NULL, pos))
856 856
857 def part_box_remove_all(self, part, int clear): 857 def part_box_remove_all(self, part, int clear):
858 """Removes all objects from a BOX part. 858 """Removes all objects from a BOX part.
@@ -866,7 +866,7 @@ cdef class Edje(Object):
866 """ 866 """
867 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 867 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
868 return bool(edje_object_part_box_remove_all(self.obj, 868 return bool(edje_object_part_box_remove_all(self.obj,
869 <const_char *>part if part is not None else NULL, clear)) 869 <const char *>part if part is not None else NULL, clear))
870 870
871 def part_table_pack(self, part, Object child, short col, short row, short colspan, short rowspan): 871 def part_table_pack(self, part, Object child, short col, short row, short colspan, short rowspan):
872 """Pack an object inside a TABLE part. 872 """Pack an object inside a TABLE part.
@@ -882,7 +882,7 @@ cdef class Edje(Object):
882 """ 882 """
883 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 883 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
884 return bool(edje_object_part_table_pack(self.obj, 884 return bool(edje_object_part_table_pack(self.obj,
885 <const_char *>part if part is not None else NULL, 885 <const char *>part if part is not None else NULL,
886 child.obj, col, row, colspan, rowspan)) 886 child.obj, col, row, colspan, rowspan))
887 887
888 def part_table_unpack(self, part, Object child): 888 def part_table_unpack(self, part, Object child):
@@ -895,7 +895,7 @@ cdef class Edje(Object):
895 """ 895 """
896 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 896 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
897 return bool(edje_object_part_table_unpack(self.obj, 897 return bool(edje_object_part_table_unpack(self.obj,
898 <const_char *>part if part is not None else NULL, 898 <const char *>part if part is not None else NULL,
899 child.obj)) 899 child.obj))
900 900
901 def part_table_col_row_size_get(self, part): 901 def part_table_col_row_size_get(self, part):
@@ -908,7 +908,7 @@ cdef class Edje(Object):
908 cdef int c, r 908 cdef int c, r
909 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 909 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
910 edje_object_part_table_col_row_size_get(self.obj, 910 edje_object_part_table_col_row_size_get(self.obj,
911 <const_char *>part if part is not None else NULL, &c, &r) 911 <const char *>part if part is not None else NULL, &c, &r)
912 return (c, r) 912 return (c, r)
913 913
914 def part_table_clear(self, part, int clear): 914 def part_table_clear(self, part, int clear):
@@ -923,7 +923,7 @@ cdef class Edje(Object):
923 """ 923 """
924 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 924 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
925 return bool(edje_object_part_table_clear(self.obj, 925 return bool(edje_object_part_table_clear(self.obj,
926 <const_char *>part if part is not None else NULL, clear)) 926 <const char *>part if part is not None else NULL, clear))
927 927
928 def part_table_child_get(self, part, int row, int column): 928 def part_table_child_get(self, part, int row, int column):
929 """Retrieve a child from a table. 929 """Retrieve a child from a table.
@@ -937,22 +937,22 @@ cdef class Edje(Object):
937 """ 937 """
938 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 938 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
939 return object_from_instance(edje_object_part_table_child_get(self.obj, 939 return object_from_instance(edje_object_part_table_child_get(self.obj,
940 <const_char *>part if part is not None else NULL, row, column)) 940 <const char *>part if part is not None else NULL, row, column))
941 941
942 def part_state_get(self, part): 942 def part_state_get(self, part):
943 ":rtype: (name, value)" 943 ":rtype: (name, value)"
944 cdef double sv 944 cdef double sv
945 cdef const_char *sn 945 cdef const char *sn
946 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 946 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
947 sn = edje_object_part_state_get(self.obj, 947 sn = edje_object_part_state_get(self.obj,
948 <const_char *>part if part is not None else NULL, &sv) 948 <const char *>part if part is not None else NULL, &sv)
949 return (_ctouni(sn), sv) 949 return (_ctouni(sn), sv)
950 950
951 def part_drag_dir_get(self, part): 951 def part_drag_dir_get(self, part):
952 ":rtype: int" 952 ":rtype: int"
953 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 953 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
954 return edje_object_part_drag_dir_get(self.obj, 954 return edje_object_part_drag_dir_get(self.obj,
955 <const_char *>part if part is not None else NULL) 955 <const char *>part if part is not None else NULL)
956 956
957 def part_drag_value_set(self, part, double dx, double dy): 957 def part_drag_value_set(self, part, double dx, double dy):
958 """Set the drag value of part 958 """Set the drag value of part
@@ -961,14 +961,14 @@ cdef class Edje(Object):
961 """ 961 """
962 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 962 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
963 edje_object_part_drag_value_set(self.obj, 963 edje_object_part_drag_value_set(self.obj,
964 <const_char *>part if part is not None else NULL, dx, dy) 964 <const char *>part if part is not None else NULL, dx, dy)
965 965
966 def part_drag_value_get(self, part): 966 def part_drag_value_get(self, part):
967 ":rtype: tuple of float" 967 ":rtype: tuple of float"
968 cdef double dx, dy 968 cdef double dx, dy
969 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 969 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
970 edje_object_part_drag_value_get(self.obj, 970 edje_object_part_drag_value_get(self.obj,
971 <const_char *>part if part is not None else NULL, &dx, &dy) 971 <const char *>part if part is not None else NULL, &dx, &dy)
972 return (dx, dy) 972 return (dx, dy)
973 973
974 def part_drag_size_set(self, part, double dw, double dh): 974 def part_drag_size_set(self, part, double dw, double dh):
@@ -978,14 +978,14 @@ cdef class Edje(Object):
978 """ 978 """
979 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 979 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
980 edje_object_part_drag_size_set(self.obj, 980 edje_object_part_drag_size_set(self.obj,
981 <const_char *>part if part is not None else NULL, dw, dh) 981 <const char *>part if part is not None else NULL, dw, dh)
982 982
983 def part_drag_size_get(self, part): 983 def part_drag_size_get(self, part):
984 ":rtype: tuple of float" 984 ":rtype: tuple of float"
985 cdef double dw, dh 985 cdef double dw, dh
986 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 986 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
987 edje_object_part_drag_size_get(self.obj, 987 edje_object_part_drag_size_get(self.obj,
988 <const_char *>part if part is not None else NULL, &dw, &dh) 988 <const char *>part if part is not None else NULL, &dw, &dh)
989 return (dw, dh) 989 return (dw, dh)
990 990
991 def part_drag_step_set(self, part, double dx, double dy): 991 def part_drag_step_set(self, part, double dx, double dy):
@@ -995,38 +995,38 @@ cdef class Edje(Object):
995 """ 995 """
996 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 996 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
997 edje_object_part_drag_step_set(self.obj, 997 edje_object_part_drag_step_set(self.obj,
998 <const_char *>part if part is not None else NULL, dx, dy) 998 <const char *>part if part is not None else NULL, dx, dy)
999 999
1000 def part_drag_step_get(self, part): 1000 def part_drag_step_get(self, part):
1001 ":rtype: tuple of float" 1001 ":rtype: tuple of float"
1002 cdef double dx, dy 1002 cdef double dx, dy
1003 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 1003 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
1004 edje_object_part_drag_step_get(self.obj, 1004 edje_object_part_drag_step_get(self.obj,
1005 <const_char *>part if part is not None else NULL, &dx, &dy) 1005 <const char *>part if part is not None else NULL, &dx, &dy)
1006 return (dx, dy) 1006 return (dx, dy)
1007 1007
1008 def part_drag_step(self, part, double dx, double dy): 1008 def part_drag_step(self, part, double dx, double dy):
1009 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 1009 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
1010 edje_object_part_drag_step(self.obj, 1010 edje_object_part_drag_step(self.obj,
1011 <const_char *>part if part is not None else NULL, dx, dy) 1011 <const char *>part if part is not None else NULL, dx, dy)
1012 1012
1013 def part_drag_page_set(self, part, double dx, double dy): 1013 def part_drag_page_set(self, part, double dx, double dy):
1014 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 1014 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
1015 edje_object_part_drag_page_set(self.obj, 1015 edje_object_part_drag_page_set(self.obj,
1016 <const_char *>part if part is not None else NULL, dx, dy) 1016 <const char *>part if part is not None else NULL, dx, dy)
1017 1017
1018 def part_drag_page_get(self, part): 1018 def part_drag_page_get(self, part):
1019 ":rtype: tuple of float" 1019 ":rtype: tuple of float"
1020 cdef double dx, dy 1020 cdef double dx, dy
1021 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 1021 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
1022 edje_object_part_drag_page_get(self.obj, 1022 edje_object_part_drag_page_get(self.obj,
1023 <const_char *>part if part is not None else NULL, &dx, &dy) 1023 <const char *>part if part is not None else NULL, &dx, &dy)
1024 return (dx, dy) 1024 return (dx, dy)
1025 1025
1026 def part_drag_page(self, part, double dx, double dy): 1026 def part_drag_page(self, part, double dx, double dy):
1027 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part) 1027 if isinstance(part, unicode): part = PyUnicode_AsUTF8String(part)
1028 edje_object_part_drag_page(self.obj, 1028 edje_object_part_drag_page(self.obj,
1029 <const_char *>part if part is not None else NULL, dx, dy) 1029 <const char *>part if part is not None else NULL, dx, dy)
1030 1030
1031 cdef void message_send_int(self, int id, int data): 1031 cdef void message_send_int(self, int id, int data):
1032 cdef Edje_Message_Int m 1032 cdef Edje_Message_Int m
@@ -1270,8 +1270,8 @@ cdef class Edje(Object):
1270 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission) 1270 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission)
1271 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source) 1271 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source)
1272 edje_object_signal_callback_add(self.obj, 1272 edje_object_signal_callback_add(self.obj,
1273 <const_char *>emission if emission is not None else NULL, 1273 <const char *>emission if emission is not None else NULL,
1274 <const_char *>source if source is not None else NULL, 1274 <const char *>source if source is not None else NULL,
1275 signal_cb, <void*>lst) 1275 signal_cb, <void*>lst)
1276 lst.append((func, args, kargs)) 1276 lst.append((func, args, kargs))
1277 1277
@@ -1303,8 +1303,8 @@ cdef class Edje(Object):
1303 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission) 1303 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission)
1304 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source) 1304 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source)
1305 edje_object_signal_callback_del(self.obj, 1305 edje_object_signal_callback_del(self.obj,
1306 <const_char *>emission if emission is not None else NULL, 1306 <const char *>emission if emission is not None else NULL,
1307 <const_char *>source if source is not None else NULL, 1307 <const char *>source if source is not None else NULL,
1308 signal_cb) 1308 signal_cb)
1309 1309
1310 def signal_emit(self, emission, source): 1310 def signal_emit(self, emission, source):
@@ -1312,8 +1312,8 @@ cdef class Edje(Object):
1312 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission) 1312 if isinstance(emission, unicode): emission = PyUnicode_AsUTF8String(emission)
1313 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source) 1313 if isinstance(source, unicode): source = PyUnicode_AsUTF8String(source)
1314 edje_object_signal_emit(self.obj, 1314 edje_object_signal_emit(self.obj,
1315 <const_char *>emission if emission is not None else NULL, 1315 <const char *>emission if emission is not None else NULL,
1316 <const_char *>source if source is not None else NULL) 1316 <const char *>source if source is not None else NULL)
1317 1317
1318 1318
1319# decorators 1319# decorators