search for: param_id

Displaying 20 results from an estimated 28 matches for "param_id".

2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
..., -16385 - movie->depth); /* don't ask me why... */ if (SWFDEC_IS_SPRITE_MOVIE (movie)) return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD); @@ -739,6 +742,38 @@ swfdec_movie_render (SwfdecMovie *movie, } static void +swfdec_movie_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + SwfdecMovie *movie = SWFDEC_MOVIE (object); + + switch (param_id) { + case PROP_DEPTH: + g_value_set_int (value, movie->depth); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); + break; +...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...libswfdec/swfdec_player.c @@ -546,7 +546,8 @@ enum { PROP_HEIGHT, PROP_ALIGNMENT, PROP_SCALE, - PROP_SYSTEM + PROP_SYSTEM, + PROP_MAX_RUNTIME }; G_DEFINE_TYPE (SwfdecPlayer, swfdec_player, SWFDEC_TYPE_AS_CONTEXT) @@ -642,6 +643,9 @@ swfdec_player_get_property (GObject *object, guint param_id, GValue *value, case PROP_SYSTEM: g_value_set_object (value, player->system); break; + case PROP_MAX_RUNTIME: + g_value_set_ulong (value, player->max_runtime); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); bre...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...mory_until_gc; } /** @@ -417,10 +418,47 @@ enum { LAST_SIGNAL }; +enum { + PROP_0, + PROP_UNTIL_GC +}; + G_DEFINE_TYPE (SwfdecAsContext, swfdec_as_context, G_TYPE_OBJECT) static guint signals[LAST_SIGNAL] = { 0, }; static void +swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object); + + switch (param_id) { + case PROP_UNTIL_GC: + g_value_set_ulong (value, (gulong) context->memory_until_gc); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (ob...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...fdecPlayer + */ + +/** + * SwfdecGtkPlayer: + * + * The structure for the Swfdec Gtk player contains no public fields. + */ + +/*** SWFDEC_GTK_PLAYER ***/ + +G_DEFINE_TYPE (SwfdecGtkPlayer, swfdec_gtk_player, SWFDEC_TYPE_PLAYER) + +static void +swfdec_gtk_player_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + SwfdecGtkPlayer *player = SWFDEC_GTK_PLAYER (object); + + switch (param_id) { + case PROP_PLAYING: + g_value_set_boolean (value, player->source != NULL); + break; + case PROP_AUDIO: + g_value_set_boolean (value, player->a...
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
...@@ swfdec_loader_get_property (GObject *obj case PROP_SIZE: g_value_set_ulong (value, loader->size); break; + case PROP_LOADED: + g_value_set_ulong (value, swfdec_loader_get_loaded (loader)); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -163,6 +167,9 @@ swfdec_loader_class_init (SwfdecLoaderCl g_object_class_install_property (object_class, PROP_SIZE, g_param_spec_ulong ("size", "size", "amount of bytes in loader", 0, G_MAXULONG, 0, G_PARAM_READWRITE)); + g_obje...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
.../* FIXME: make this emit the signal at the right time */ + player->invalid.x0 = 0; + player->invalid.y0 = 0; + player->invalid.x1 = player->stage_width; + player->invalid.y1 = player->stage_height; +#endif +} + +static void swfdec_player_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec) { @@ -458,9 +527,11 @@ swfdec_player_set_property (GObject *obj break; case PROP_ALIGNMENT: player->align_flags = swfdec_player_alignment_to_flags (g_value_get_enum (value)); + swfdec_player_update_scale (player); brea...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...USA + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "vivi_docklet.h" + +enum { + PROP_0, + PROP_TITLE, + PROP_ICON +}; + +G_DEFINE_ABSTRACT_TYPE (ViviDocklet, vivi_docklet, GTK_TYPE_BIN) + +static void +vivi_docklet_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + ViviDocklet *docklet = VIVI_DOCKLET (object); + + switch (param_id) { + case PROP_TITLE: + g_value_set_string (value, docklet->title); + break; + case PROP_ICON: + g_value_set_string (value, docklet->icon); + break;...
2007 Aug 27
0
7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_string.c libswfdec/swfdec_as_string.h libswfdec/swfdec_as_strings.c libswfdec/swfdec.h libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c
...6 +635,9 @@ swfdec_player_get_property (GObject *obj case PROP_SCALE: g_value_set_enum (value, player->scale_mode); break; + case PROP_SYSTEM: + g_value_set_object (value, player->system); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -735,6 +739,14 @@ swfdec_player_set_property (GObject *obj case PROP_SCALE: swfdec_player_set_scale_mode (player, g_value_get_enum (value)); break; + case PROP_SYSTEM: + g_object_unref (player->system); + if (g_value_get_object (value)) {...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...et.c @@ -28,7 +28,14 @@ enum { PROP_APP }; +enum { + APPLICATION_SET, + APPLICATION_UNSET, + LAST_SIGNAL +}; + G_DEFINE_ABSTRACT_TYPE (ViviViviDocklet, vivi_vivi_docklet, VIVI_TYPE_DOCKLET) +guint signals[LAST_SIGNAL]; static void vivi_vivi_docklet_get_property (GObject *object, guint param_id, GValue *value, @@ -51,14 +58,17 @@ vivi_vivi_docklet_set_property (GObject GParamSpec *pspec) { ViviViviDocklet *docklet = VIVI_VIVI_DOCKLET (object); - ViviViviDockletClass *klass; switch (param_id) { case PROP_APP: + if (docklet->app) { + g_signal_emit (docklet, sig...
2007 Nov 08
0
8 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_player.c test/trace
...index 18afbe2..a429112 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -435,6 +435,7 @@ enum { enum { PROP_0, PROP_DEBUGGER, + PROP_RANDOM_SEED, PROP_ABORTED, PROP_UNTIL_GC }; @@ -448,7 +449,6 @@ swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value, { SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object); - switch (param_id) { case PROP_DEBUGGER: g_value_set_object (value, context->debugger); @@ -471,11 +471,13 @@ swfdec_as_context_set_property (GObject *object, guint param_id, const GValue *v { Sw...
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...9 @@ swfdec_loader_get_property (GObject *obj case PROP_LOADED: g_value_set_ulong (value, swfdec_loader_get_loaded (loader)); break; + case PROP_URL: + g_value_set_boxed (value, loader->url); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -136,6 +140,13 @@ swfdec_loader_set_property (GObject *obj if (loader->size == 0 && g_value_get_ulong (value) > 0) swfdec_loader_set_size (loader, g_value_get_ulong (value)); break; + case PROP_URL: + loader->url = g_value_dup_boxed...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
....h" enum { + MESSAGE, + LAST_SIGNAL +}; + +enum { PROP_0, PROP_FILENAME, PROP_PLAYER }; G_DEFINE_TYPE (ViviApplication, vivi_application, SWFDEC_TYPE_AS_CONTEXT) +static guint signals[LAST_SIGNAL] = { 0, }; static void vivi_application_get_property (GObject *object, guint param_id, GValue *value, @@ -93,6 +99,10 @@ vivi_application_class_init (ViviApplica g_object_class_install_property (object_class, PROP_PLAYER, g_param_spec_object ("player", "player", "Flash player in use", SWFDEC_TYPE_PLAYER, G_PARAM_READABLE)); + + signals[M...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...PROP_INITIALIZED, PROP_MOUSE_CURSOR, - PROP_NEXT_EVENT + PROP_NEXT_EVENT, + PROP_BACKGROUND_COLOR }; G_DEFINE_TYPE (SwfdecPlayer, swfdec_player, G_TYPE_OBJECT) @@ -285,6 +286,9 @@ swfdec_player_get_property (GObject *obj SwfdecPlayer *player = SWFDEC_PLAYER (object); switch (param_id) { + case PROP_BACKGROUND_COLOR: + g_value_set_uint (value, swfdec_player_get_background_color (player)); + break; case PROP_CACHE_SIZE: g_value_set_uint (value, player->cache->max_size); break; @@ -310,6 +314,9 @@ swfdec_player_set_property (GObject *obj Sw...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...Lesser General Public @@ -56,23 +56,62 @@ /*** SwfdecLoader ***/ +enum { + PROP_0, + PROP_ERROR, + PROP_EOF +}; + G_DEFINE_ABSTRACT_TYPE (SwfdecLoader, swfdec_loader, G_TYPE_OBJECT) static void -swfdec_loader_dispose (GObject *object) +swfdec_loader_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) { SwfdecLoader *loader = SWFDEC_LOADER (object); + + switch (param_id) { + case PROP_ERROR: + g_value_set_string (value, loader->error); + break; + case PROP_EOF: + g_value_set_boolean (value, loader->eof); + break; +...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...SWFDEC_AS_STR__bytesTotal, &val, SWFDEC_AS_VARIABLE_HIDDEN); } diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 9bde057..e79ba1e 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -112,7 +112,7 @@ swfdec_loader_get_property (GObject *object, guint param_id, GValue *value, g_value_set_enum (value, loader->data_type); break; case PROP_SIZE: - g_value_set_ulong (value, loader->size); + g_value_set_long (value, loader->size); break; case PROP_LOADED: g_value_set_ulong (value, swfdec_loader_get_load...
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
...et.c @@ -28,7 +28,14 @@ enum { PROP_APP }; +enum { + APPLICATION_SET, + APPLICATION_UNSET, + LAST_SIGNAL +}; + G_DEFINE_ABSTRACT_TYPE (ViviViviDocklet, vivi_vivi_docklet, VIVI_TYPE_DOCKLET) +guint signals[LAST_SIGNAL]; static void vivi_vivi_docklet_get_property (GObject *object, guint param_id, GValue *value, @@ -51,14 +58,17 @@ vivi_vivi_docklet_set_property (GObject GParamSpec *pspec) { ViviViviDocklet *docklet = VIVI_VIVI_DOCKLET (object); - ViviViviDockletClass *klass; switch (param_id) { case PROP_APP: + if (docklet->app) { + g_signal_emit (docklet, sig...
2007 Oct 22
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...FDEC_AS_CONTEXT_ABORTED; + g_object_notify (G_OBJECT (context), "aborted"); } /*** MEMORY MANAGEMENT ***/ @@ -431,6 +432,7 @@ enum { enum { PROP_0, PROP_DEBUGGER, + PROP_ABORTED, PROP_UNTIL_GC }; @@ -448,6 +450,9 @@ swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value, case PROP_DEBUGGER: g_value_set_object (value, context->debugger); break; + case PROP_ABORTED: + g_value_set_boolean (value, context->state == SWFDEC_AS_CONTEXT_ABORTED); + break; case PROP_UNTIL_GC: g_value_set_ulong (value, (gulong...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...d/ui/vivi_widget.c +++ b/vivified/ui/vivi_widget.c @@ -24,9 +24,44 @@ #include <math.h> #include "vivi_widget.h" +enum { + PROP_0, + PROP_APP +}; G_DEFINE_TYPE (ViviWidget, vivi_widget, SWFDEC_TYPE_GTK_WIDGET) +static void +vivi_widget_get_property (GObject *object, guint param_id, GValue *value, + GParamSpec * pspec) +{ + ViviWidget *widget = VIVI_WIDGET (object); + + switch (param_id) { + case PROP_APP: + g_value_set_object (value, widget->app); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); + break;...
2007 Mar 16
0
libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_xml.c
...77,6 +78,9 @@ swfdec_loader_get_property (GObject *obj case PROP_EOF: g_value_set_boolean (value, loader->eof); break; + case PROP_DATA_TYPE: + g_value_set_enum (value, loader->data_type); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); break; @@ -130,12 +134,16 @@ swfdec_loader_class_init (SwfdecLoaderCl g_object_class_install_property (object_class, PROP_EOF, g_param_spec_boolean ("eof", "eof", "TRUE when all data has been handed to the loader", FALSE, G_PARAM_READABLE)...
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
...+ SwfdecPlayerPrivate *priv = player->priv; + swfdec_movie_remove (movie); - player->movies = g_list_remove (player->movies, movie); + priv->movies = g_list_remove (priv->movies, movie); } static guint @@ -668,49 +686,50 @@ swfdec_player_get_property (GObject *object, guint param_id, GValue *value, GParamSpec * pspec) { SwfdecPlayer *player = SWFDEC_PLAYER (object); + SwfdecPlayerPrivate *priv = player->priv; switch (param_id) { case PROP_BACKGROUND_COLOR: g_value_set_uint (value, swfdec_player_get_background_color (player)); break;...