summaryrefslogtreecommitdiff
path: root/legacy/emotion
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-09-28 05:33:53 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-09-28 05:33:53 +0000
commit9f505cd3d9e404e62b9cc8155dd60f9b47b2bcc2 (patch)
treebb0e7f35c7bc29573b563a710acf06981d5771c0 /legacy/emotion
parentbcba2b261b3c0dcb0185abc7acb05999f62c88aa (diff)
export play_length as well.
SVN revision: 52841
Diffstat (limited to 'legacy/emotion')
-rw-r--r--legacy/emotion/src/edje_external/emotion.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/emotion/src/edje_external/emotion.c b/legacy/emotion/src/edje_external/emotion.c
index 36ecc9c897..c95b60dfcc 100644
--- a/legacy/emotion/src/edje_external/emotion.c
+++ b/legacy/emotion/src/edje_external/emotion.c
@@ -28,6 +28,7 @@ struct _External_Emotion_Params
28 _INT(spu_channel); 28 _INT(spu_channel);
29 _INT(chapter); 29 _INT(chapter);
30 _DOUBLE(play_speed); 30 _DOUBLE(play_speed);
31 _DOUBLE(play_length);
31 //_INT(vis); 32 //_INT(vis);
32#undef _STR 33#undef _STR
33#undef _BOOL 34#undef _BOOL
@@ -177,6 +178,7 @@ _external_emotion_state_set(void *data __UNUSED__, Evas_Object *obj, const void
177 _INT(spu_channel); 178 _INT(spu_channel);
178 _INT(chapter); 179 _INT(chapter);
179 _DOUBLE(play_speed); 180 _DOUBLE(play_speed);
181 if (p->play_length_exists) ERR("play_length is read-only");
180 //_INT(vis); 182 //_INT(vis);
181#undef _STR 183#undef _STR
182#undef _BOOL 184#undef _BOOL
@@ -245,6 +247,11 @@ _external_emotion_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_
245 _INT(spu_channel) 247 _INT(spu_channel)
246 _INT(chapter) 248 _INT(chapter)
247 _DOUBLE(play_speed) 249 _DOUBLE(play_speed)
250 else if (!strcmp(param->name, "play_length"))
251 {
252 ERR("play_length is read-only");
253 return EINA_FALSE;
254 }
248 //_INT(vis); 255 //_INT(vis);
249#undef _STR 256#undef _STR
250#undef _BOOL 257#undef _BOOL
@@ -311,6 +318,7 @@ _external_emotion_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_
311 _INT(spu_channel) 318 _INT(spu_channel)
312 _INT(chapter) 319 _INT(chapter)
313 _DOUBLE(play_speed) 320 _DOUBLE(play_speed)
321 _DOUBLE(play_length)
314 //_INT(vis) 322 //_INT(vis)
315#undef _STR 323#undef _STR
316#undef _BOOL 324#undef _BOOL
@@ -367,6 +375,7 @@ _external_emotion_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED_
367 _INT(spu_channel); 375 _INT(spu_channel);
368 _INT(chapter); 376 _INT(chapter);
369 _DOUBLE(play_speed); 377 _DOUBLE(play_speed);
378 _DOUBLE(play_length);
370 //_INT(vis); 379 //_INT(vis);
371#undef _STR 380#undef _STR
372#undef _BOOL 381#undef _BOOL
@@ -399,6 +408,7 @@ _external_emotion_params_free(void *params)
399 _INT(spu_channel); 408 _INT(spu_channel);
400 _INT(chapter); 409 _INT(chapter);
401 _DOUBLE(play_speed); 410 _DOUBLE(play_speed);
411 _DOUBLE(play_length);
402 //_INT(vis); 412 //_INT(vis);
403#undef _STR 413#undef _STR
404#undef _BOOL 414#undef _BOOL
@@ -454,6 +464,7 @@ static Edje_External_Param_Info _external_emotion_params[] = {
454 EDJE_EXTERNAL_PARAM_INFO_INT_DEFAULT("spu_channel", 0), 464 EDJE_EXTERNAL_PARAM_INFO_INT_DEFAULT("spu_channel", 0),
455 EDJE_EXTERNAL_PARAM_INFO_INT("chapter"), 465 EDJE_EXTERNAL_PARAM_INFO_INT("chapter"),
456 EDJE_EXTERNAL_PARAM_INFO_DOUBLE_DEFAULT("play_speed", 1.0), 466 EDJE_EXTERNAL_PARAM_INFO_DOUBLE_DEFAULT("play_speed", 1.0),
467 EDJE_EXTERNAL_PARAM_INFO_DOUBLE("play_length"),
457 //EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("vis", ...), 468 //EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("vis", ...),
458 EDJE_EXTERNAL_PARAM_INFO_SENTINEL 469 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
459}; 470};