search for: mouse_in

Displaying 11 results from an estimated 11 matches for "mouse_in".

2007 Oct 30
0
libswfdec/swfdec_button_movie.c
..._OVER_UP_TO_OVER_DOWN }, { -1, SWFDEC_BUTTON_OVER_DOWN_TO_IDLE, SWFDEC_BUTTON_OVER_DOWN_TO_OVER_UP, -1 } } }; @@ -156,7 +156,7 @@ swfdec_button_movie_change_state (SwfdecButtonMovie *movie, SwfdecButtonState st static void swfdec_button_movie_change_mouse (SwfdecButtonMovie *movie, gboolean mouse_in, int button) { - SwfdecButtonCondition event; + int event; int sound; if (movie->mouse_in == mouse_in && @@ -173,14 +173,14 @@ swfdec_button_movie_change_mouse (SwfdecButtonMovie *movie, gboolean mouse_in, i [(mouse_in ? 2 : 0) + button]; #ifndef G_DISABLE_ASSERT -...
2007 Nov 28
0
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
...dex 3ceae26..0a8a50c 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -229,46 +229,56 @@ swfdec_button_movie_init_movie (SwfdecMovie *mov) swfdec_button_movie_set_state (movie, SWFDEC_BUTTON_UP); } -#if 0 -static gboolean G_GNUC_UNUSED -swfdec_button_movie_mouse_in (SwfdecMovie *movie, double x, double y) +static gboolean +swfdec_button_movie_hit_test (SwfdecButtonMovie *button, double x, double y) { - GList *walk; + SwfdecSwfDecoder *dec; + GSList *walk; double tmpx, tmpy; - SwfdecButton *button = SWFDEC_BUTTON_MOVIE (movie)->button; - SwfdecCont...
2007 Aug 21
0
Branch 'vivi' - 10 commits - libswfdec/swfdec_button_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c vivified/core vivified/dock vivified/ui
...improve the assertion message diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index b48c746..c6d5b3c 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -171,7 +171,14 @@ swfdec_button_movie_change_mouse (Swfdec [(movie->mouse_in ? 2 : 0) + movie->mouse_button] [(mouse_in ? 2 : 0) + button]; - g_assert (event != (guint) -1); +#ifndef G_DISABLE_ASSERT + if (event == (guint) -1) { + g_error ("Unhandled event for %s: %u => %u", + movie->button->menubutton ? "menu" : "button&q...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...plication_as.c | 2 8 files changed, 169 insertions(+), 113 deletions(-) New commits: diff-tree 10d4cc43986ce88bb43cb7bf96712846c962ed86 (from d752275f3f23d91ea0e3e7aa03fadce6ae8bef34) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 22 21:14:55 2007 +0200 make swfdec_movie_mouse_in() check children This makes kittencannon work diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index eb1e2e5..ca76cc5 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -480,11 +480,22 @@ gboolean swfdec_movie_mouse_in (SwfdecMovie *movie, double x, d...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...dec_shape.h" +#include "swfdec_sprite.h" +#include "swfdec_swf_decoder.h" +#include "swfdec_swf_instance.h" +#include "swfdec_text.h" G_DEFINE_TYPE (SwfdecGraphicMovie, swfdec_graphic_movie, SWFDEC_TYPE_MOVIE) @@ -51,6 +60,31 @@ swfdec_graphic_movie_mouse_in (SwfdecMov } static void +swfdec_graphic_movie_replace (SwfdecMovie *movie, SwfdecGraphic *graphic) +{ + SwfdecGraphicMovie *gmovie = SWFDEC_GRAPHIC_MOVIE (movie); + + if (SWFDEC_IS_SHAPE (graphic) || + SWFDEC_IS_TEXT (graphic)) { + /* wtf? */ + if (SWFDEC_SWF_DECODER (movie->sw...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...ecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (player->mouse_grab); + if (priv->mouse_grab) { + if (below_mouse == priv->mouse_grab && + priv->mouse_below != priv->mouse_grab) { + SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (priv->mouse_grab); if (klass->mouse_in) - klass->mouse_in (player->mouse_grab); - } else if (below_mouse != player->mouse_grab && - player->mouse_below == player->mouse_grab) { - SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (player->mouse_grab); + klass->mouse_in (priv->mouse_grab); +...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...e.c @@ -151,7 +151,8 @@ swfdec_button_movie_change_mouse (Swfdec audio = swfdec_audio_event_new ( SWFDEC_ROOT_MOVIE (SWFDEC_MOVIE (movie)->root)->player, movie->button->sounds[sound]); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } movie->mouse_in = mouse_in; movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...e.c @@ -151,7 +151,8 @@ swfdec_button_movie_change_mouse (Swfdec audio = swfdec_audio_event_new ( SWFDEC_ROOT_MOVIE (SWFDEC_MOVIE (movie)->root)->player, movie->button->sounds[sound]); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } movie->mouse_in = mouse_in; movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if...
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
..._MOVIE (movie->root)->player; + player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); *x = player->mouse_x; *y = player->mouse_y; swfdec_movie_global_to_local (movie, x, y); @@ -577,7 +578,7 @@ swfdec_movie_send_mouse_change (SwfdecMo button = 0; } else { mouse_in = swfdec_movie_mouse_in (movie, x, y); - button = SWFDEC_ROOT_MOVIE (movie->root)->player->mouse_button; + button = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context)->mouse_button; } klass = SWFDEC_MOVIE_GET_CLASS (movie); g_assert (klass->mouse_change != NULL); @@...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...t_has_variable() add swfdec_player_is_mouse_pressed() macro for code clarity set default event handlers for SwfdecMovie mouse events fix _contains() checks only react to mouse button 0 number buttons correctly and release the mouse grab on button release confused mouse_in and mouse_out vfuncs implement mouse_events vfunc fix to new mouse API port to new API add mouse movement test emit a mouse-in event after a mouse release outside the grab widget add a test similar to the last - only this time the upper movie receives events...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...improve the assertion message diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index b48c746..c6d5b3c 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -171,7 +171,14 @@ swfdec_button_movie_change_mouse (Swfdec [(movie->mouse_in ? 2 : 0) + movie->mouse_button] [(mouse_in ? 2 : 0) + button]; - g_assert (event != (guint) -1); +#ifndef G_DISABLE_ASSERT + if (event == (guint) -1) { + g_error ("Unhandled event for %s: %u => %u", + movie->button->menubutton ? "menu" : "button&q...