search for: swfdec_mouse_removelistener

Displaying 5 results from an estimated 5 matches for "swfdec_mouse_removelistener".

2007 Jun 10
0
Branch 'as' - 5 commits - libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie_asprops.c test/trace
...&val, mouse); swfdec_as_object_set_variable (SWFDEC_AS_CONTEXT (player)->global, SWFDEC_AS_STR_Mouse, &val); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_addListener, 0, swfdec_mouse_addListener, 1); - swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_removeListener, 0, swfdec_mouse_removeListener, 1); + if (version > 5) { + swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_addListener, 0, swfdec_mouse_addListener, 1); + swfdec_as_object_add_function (mouse, SWFDEC_AS_STR_removeListener, 0, swfdec_mouse_removeListener, 1); + } swfdec_as_object_add_function (mouse, SWFDEC_AS_S...
2007 Jun 02
2
small bug in swfdec_mouse_as.c
Hi, I found a small bug there. BTW which way is expected to send patches? Attach a couple of git-format-patch(ed) patches in email, use git-send-email or push to a git repository and notify the list? Cheers, diff --git a/libswfdec/swfdec_mouse_as.c b/libswfdec/swfdec_mouse_as.c index d4d53d9..9483bbf 100644 --- a/libswfdec/swfdec_mouse_as.c +++ b/libswfdec/swfdec_mouse_as.c @@ -31,7 +31,7 @@
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...cAsValue *argv, SwfdecAsValue *return_value) { - SwfdecPlayer *player = SWFDEC_PLAYER (object->context); + SwfdecPlayer *player = SWFDEC_PLAYER (cx); if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) return; @@ -37,9 +38,10 @@ swfdec_mouse_addListener (SwfdecAsObject } static void -swfdec_mouse_removeListener (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *return_value) +swfdec_mouse_removeListener (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *return_value) { - SwfdecPlayer *player = SWFDEC_PLAYER (object->context); + Sw...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...ect, - guint argc, SwfdecAsValue *argv, SwfdecAsValue *return_value) -{ - SwfdecPlayer *player = SWFDEC_PLAYER (cx); - - if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) - return; - swfdec_listener_add (player->mouse_listener, SWFDEC_AS_VALUE_GET_OBJECT (&argv[0])); -} - -static void -swfdec_mouse_removeListener (SwfdecAsContext *cx, SwfdecAsObject *object, - guint argc, SwfdecAsValue *argv, SwfdecAsValue *return_value) -{ - SwfdecPlayer *player = SWFDEC_PLAYER (cx); - - if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) - return; - swfdec_listener_remove (player->mouse_listener, SWFDEC_AS_VALUE_GE...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...cAsObject { SwfdecPlayer *player = SWFDEC_PLAYER (object->context); - if (!SWFDEC_IS_AS_OBJECT (&argv[0])) + if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) return; swfdec_listener_add (player->mouse_listener, SWFDEC_AS_VALUE_GET_OBJECT (&argv[0])); } @@ -41,7 +41,7 @@ swfdec_mouse_removeListener (SwfdecAsObj { SwfdecPlayer *player = SWFDEC_PLAYER (object->context); - if (!SWFDEC_IS_AS_OBJECT (&argv[0])) + if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0])) return; swfdec_listener_remove (player->mouse_listener, SWFDEC_AS_VALUE_GET_OBJECT (&argv[0])); } diff-tree 1...