summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-08-11 23:30:46 +0200
committerdavemds <dave@gurumeditation.it>2014-08-11 23:30:46 +0200
commit042dc0f835b37811babb75b32d2874cf340e78ec (patch)
tree977b8a1b47f7cbcbced0897af848f455249316a5
parent0567c52013053596a9fc87f2c2bde2e94f5e378d (diff)
emotion: implemented missed smart signals
-rw-r--r--doc/emotion/emotion.rst4
-rw-r--r--efl/emotion/efl.emotion.pyx84
2 files changed, 88 insertions, 0 deletions
diff --git a/doc/emotion/emotion.rst b/doc/emotion/emotion.rst
index 963fa95..3fce189 100644
--- a/doc/emotion/emotion.rst
+++ b/doc/emotion/emotion.rst
@@ -74,6 +74,10 @@ a list of interesting signals:
74 - ``ref_change`` 74 - ``ref_change``
75 - ``button_num_change`` 75 - ``button_num_change``
76 - ``button_change`` 76 - ``button_change``
77 - ``position_save,succeed``
78 - ``position_save,failed``
79 - ``position_load,succeed``
80 - ``position_load,failed``
77 81
78 82
79Reference 83Reference
diff --git a/efl/emotion/efl.emotion.pyx b/efl/emotion/efl.emotion.pyx
index 0c85a46..619cd30 100644
--- a/efl/emotion/efl.emotion.pyx
+++ b/efl/emotion/efl.emotion.pyx
@@ -1251,6 +1251,90 @@ cdef class Emotion(evasObject):
1251 """Same as calling: callback_del('audio_level_change', func)""" 1251 """Same as calling: callback_del('audio_level_change', func)"""
1252 self.callback_del("audio_level_change", func) 1252 self.callback_del("audio_level_change", func)
1253 1253
1254 def on_position_update_add(self, func, *args, **kargs):
1255 """Same as calling: callback_add('position_update', func, ...)
1256
1257 .. versionadded:: 1.11 """
1258 self.callback_add("position_update", func, *args, **kargs)
1259
1260 def on_position_update_del(self, func):
1261 """Same as calling: callback_del('position_update', func)
1262
1263 .. versionadded:: 1.11 """
1264 self.callback_del("position_update", func)
1265
1266 def on_playback_started_add(self, func, *args, **kargs):
1267 """Same as calling: callback_add('playback_started', func, ...)
1268
1269 .. versionadded:: 1.11 """
1270 self.callback_add("playback_started", func, *args, **kargs)
1271
1272 def on_playback_started_del(self, func):
1273 """Same as calling: callback_del('playback_started', func)
1274
1275 .. versionadded:: 1.11 """
1276 self.callback_del("playback_started", func)
1277
1278 def on_open_done_add(self, func, *args, **kargs):
1279 """Same as calling: callback_add('open_done', func, ...)
1280
1281 .. versionadded:: 1.11 """
1282 self.callback_add("open_done", func, *args, **kargs)
1283
1284 def on_open_done_del(self, func):
1285 """Same as calling: callback_del('open_done', func)
1286
1287 .. versionadded:: 1.11 """
1288 self.callback_del("open_done", func)
1289
1290 def on_position_save_succeed_add(self, func, *args, **kargs):
1291 """Same as calling: callback_add('position_save,succeed', func, ...)
1292
1293 .. versionadded:: 1.11 """
1294 self.callback_add("position_save,succeed", func, *args, **kargs)
1295
1296 def on_position_save_succeed_del(self, func):
1297 """Same as calling: callback_del('position_save,succeed', func)
1298
1299 .. versionadded:: 1.11 """
1300 self.callback_del("position_save,succeed", func)
1301
1302 def on_position_save_failed_add(self, func, *args, **kargs):
1303 """Same as calling: callback_add('position_save,failed', func, ...)
1304
1305 .. versionadded:: 1.11 """
1306 self.callback_add("position_save,failed", func, *args, **kargs)
1307
1308 def on_position_save_failed_del(self, func):
1309 """Same as calling: callback_del('position_save,failed', func)
1310
1311 .. versionadded:: 1.11 """
1312 self.callback_del("position_save,failed", func)
1313
1314 def on_position_load_succeed_add(self, func, *args, **kargs):
1315 """Same as calling: callback_add('position_load,succeed', func, ...)
1316
1317 .. versionadded:: 1.11 """
1318 self.callback_add("position_load,succeed", func, *args, **kargs)
1319
1320 def on_position_load_succeed_del(self, func):
1321 """Same as calling: callback_del('position_load,succeed', func)
1322
1323 .. versionadded:: 1.11 """
1324 self.callback_del("position_load,succeed", func)
1325
1326 def on_position_load_failed_add(self, func, *args, **kargs):
1327 """Same as calling: callback_add('position_load,failed', func, ...)
1328
1329 .. versionadded:: 1.11 """
1330 self.callback_add("position_load,failed", func, *args, **kargs)
1331
1332 def on_position_load_failed_del(self, func):
1333 """Same as calling: callback_del('position_load,failed', func)
1334
1335 .. versionadded:: 1.11 """
1336 self.callback_del("position_load,failed", func)
1337
1254 1338
1255# decorator 1339# decorator
1256def on_event(event_name): 1340def on_event(event_name):