Benjamin Otte
2007-Jun-28 12:57 UTC
[Swfdec] Branch 'as' - libswfdec/swfdec_button_movie.c
libswfdec/swfdec_button_movie.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) New commits: diff-tree 692c9a4cde349cc8c927e182c36de44a2e9c6a42 (from 873e9bf85e325fdb7cad66d9d7eecb1dd1ce26d5) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jun 28 14:57:02 2007 +0200 use GC'ed strings when calling into the script engine Thanks Rados??aw Szkodzi??ski for noticing diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index 4940b74..efa23b6 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -68,28 +68,29 @@ swfdec_button_condition_get_name (Swfdec /* FIXME: check if these events are based on conditions or if they're independant of button type */ switch (condition) { case SWFDEC_BUTTON_IDLE_TO_OVER_UP: - return "onRollOver"; + return SWFDEC_AS_STR_onRollOver; case SWFDEC_BUTTON_OVER_UP_TO_IDLE: - return "onRollOut"; + return SWFDEC_AS_STR_onRollOut; case SWFDEC_BUTTON_OVER_UP_TO_OVER_DOWN: - return "onPress"; + return SWFDEC_AS_STR_onPress; case SWFDEC_BUTTON_OVER_DOWN_TO_OVER_UP: - return "onRelease"; + return SWFDEC_AS_STR_onRelease; case SWFDEC_BUTTON_OVER_DOWN_TO_OUT_DOWN: - return "onDragOut"; + return SWFDEC_AS_STR_onDragOut; case SWFDEC_BUTTON_OUT_DOWN_TO_OVER_DOWN: - return "onDragOver"; + return SWFDEC_AS_STR_onDragOver; case SWFDEC_BUTTON_OUT_DOWN_TO_IDLE: - return "onReleaseOutside"; + return SWFDEC_AS_STR_onReleaseOutside; case SWFDEC_BUTTON_IDLE_TO_OVER_DOWN: - return "onDragOver"; + return SWFDEC_AS_STR_onDragOver; case SWFDEC_BUTTON_OVER_DOWN_TO_IDLE: - return "onDragOut"; + return SWFDEC_AS_STR_onDragOut; default: g_assert_not_reached (); return NULL; } } + static void swfdec_button_movie_execute (SwfdecButtonMovie *movie, SwfdecButtonCondition condition)
Apparently Analagous Threads
- 59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
- libswfdec/swfdec_button_movie.c
- 7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
- 4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
- Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui