From 9f505cd3d9e404e62b9cc8155dd60f9b47b2bcc2 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 28 Sep 2010 05:33:53 +0000 Subject: [PATCH] export play_length as well. SVN revision: 52841 --- legacy/emotion/src/edje_external/emotion.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 _INT(spu_channel); _INT(chapter); _DOUBLE(play_speed); + _DOUBLE(play_length); //_INT(vis); #undef _STR #undef _BOOL @@ -177,6 +178,7 @@ _external_emotion_state_set(void *data __UNUSED__, Evas_Object *obj, const void _INT(spu_channel); _INT(chapter); _DOUBLE(play_speed); + if (p->play_length_exists) ERR("play_length is read-only"); //_INT(vis); #undef _STR #undef _BOOL @@ -245,6 +247,11 @@ _external_emotion_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_ _INT(spu_channel) _INT(chapter) _DOUBLE(play_speed) + else if (!strcmp(param->name, "play_length")) + { + ERR("play_length is read-only"); + return EINA_FALSE; + } //_INT(vis); #undef _STR #undef _BOOL @@ -311,6 +318,7 @@ _external_emotion_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_ _INT(spu_channel) _INT(chapter) _DOUBLE(play_speed) + _DOUBLE(play_length) //_INT(vis) #undef _STR #undef _BOOL @@ -367,6 +375,7 @@ _external_emotion_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED_ _INT(spu_channel); _INT(chapter); _DOUBLE(play_speed); + _DOUBLE(play_length); //_INT(vis); #undef _STR #undef _BOOL @@ -399,6 +408,7 @@ _external_emotion_params_free(void *params) _INT(spu_channel); _INT(chapter); _DOUBLE(play_speed); + _DOUBLE(play_length); //_INT(vis); #undef _STR #undef _BOOL @@ -454,6 +464,7 @@ static Edje_External_Param_Info _external_emotion_params[] = { EDJE_EXTERNAL_PARAM_INFO_INT_DEFAULT("spu_channel", 0), EDJE_EXTERNAL_PARAM_INFO_INT("chapter"), EDJE_EXTERNAL_PARAM_INFO_DOUBLE_DEFAULT("play_speed", 1.0), + EDJE_EXTERNAL_PARAM_INFO_DOUBLE("play_length"), //EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("vis", ...), EDJE_EXTERNAL_PARAM_INFO_SENTINEL };