[Swfdec] Branch 'as' - libswfdec/swfdec_button_movie.c
Benjamin Otte
company at kemper.freedesktop.org
Thu Jun 28 05:57:27 PDT 2007
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)
More information about the Swfdec
mailing list