Displaying 20 results from an estimated 103 matches for "object_class".
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...child;
+
+ GTK_WIDGET_CLASS (vivi_docklet_parent_class)->size_allocate (widget, allocation);
+
+ if (child && GTK_WIDGET_VISIBLE (child)) {
+ gtk_widget_size_allocate (child, allocation);
+ }
+}
+
+static void
vivi_docklet_class_init (ViviDockletClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->dispose = vivi_docklet_dispose;
object_class->get_property = vivi_docklet_get_property;
@@ -95,6 +120,9 @@ vivi_docklet_class_init (ViviDockletClas
g_object_class_install_property (o...
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
...layer_dispose (GObject *object)
g_object_unref (player->loader);
player->loader = NULL;
}
+ if (player->system) {
+ g_object_unref (player->system);
+ player->system = NULL;
+ }
}
static void
@@ -1304,6 +1320,9 @@ swfdec_player_class_init (SwfdecPlayerCl
g_object_class_install_property (object_class, PROP_SCALE,
g_param_spec_enum ("scale-mode", "scale mode", "method used to scale the movie",
SWFDEC_TYPE_SCALE_MODE, SWFDEC_SCALE_SHOW_ALL, G_PARAM_READWRITE));
+ g_object_class_install_property (object_class, PROP_SCALE,
+...
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
...a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 7a22b34..9193f0b 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -254,7 +254,7 @@ swfdec_loader_load (SwfdecLoader *loader
url = swfdec_url_new_relative (loader->url, url_string);
ret = g_object_new (G_OBJECT_CLASS_TYPE (klass), "url", url, NULL);
swfdec_url_free (url);
- klass->load (ret, request, data, data_len);
+ klass->load (ret, loader, request, data, data_len);
return ret;
}
diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h
index 3f5db15..f0bd717 100644
--- a...
2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...s with the objects for NetConnection, NetStream and XML
diff --git a/libswfdec/swfdec_connection.c b/libswfdec/swfdec_connection.c
index 8e423df..464affb 100644
--- a/libswfdec/swfdec_connection.c
+++ b/libswfdec/swfdec_connection.c
@@ -42,12 +42,16 @@ swfdec_connection_dispose (GObject *obje
G_OBJECT_CLASS (swfdec_connection_parent_class)->dispose (object);
}
+extern const JSClass connection_class;
static void
swfdec_connection_class_init (SwfdecConnectionClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ SwfdecScriptableClass *scriptable_class = SWFDEC_SCRIPTABLE_CLA...
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
...ORTED:
+ g_value_set_boolean (value, context->state == SWFDEC_AS_CONTEXT_ABORTED);
+ break;
case PROP_UNTIL_GC:
g_value_set_ulong (value, (gulong) context->memory_until_gc);
break;
@@ -512,6 +517,9 @@ swfdec_as_context_class_init (SwfdecAsContextClass *klass)
g_object_class_install_property (object_class, PROP_DEBUGGER,
g_param_spec_object ("debugger", "debugger", "debugger used in this player",
SWFDEC_TYPE_AS_DEBUGGER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ g_object_class_install_property (object_class, PROP_ABORTED,...
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
---
generator/generator_actions.ml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 68a7bf6..fcf363f 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with
an external journal on
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...void
-swfdec_as_function_dispose (GObject *object)
-{
- SwfdecAsFunction *function = SWFDEC_AS_FUNCTION (object);
-
- if (function->script) {
- swfdec_script_unref (function->script);
- function->script = NULL;
- }
- g_free (function->name);
- function->name = NULL;
-
- G_OBJECT_CLASS (swfdec_as_function_parent_class)->dispose (object);
-}
-
-static void
-swfdec_as_function_mark (SwfdecAsObject *object)
-{
- SwfdecAsFunction *function = SWFDEC_AS_FUNCTION (object);
-
- if (function->scope)
- swfdec_as_object_mark (SWFDEC_AS_OBJECT (function->scope));
-
- SWFDEC_AS...
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
...default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+ break;
+ }
+}
+
+static void
swfdec_as_context_dispose (GObject *object)
{
SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object);
@@ -445,6 +483,13 @@ swfdec_as_context_class_init (SwfdecAsCo
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = swfdec_as_context_dispose;
+ object_class->get_property = swfdec_as_context_get_property;
+ object_class->set_property = swfdec_as_context_set_property;
+
+ g_object_class_install_property (object_class, PROP_UNTIL_GC,
+ g_para...
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
...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_object_class_install_property (object_class, PROP_SIZE,
+ g_param_spec_ulong ("loaded", &qu...
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
...ECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+ break;
+ }
+}
+
+static void
+swfdec_gtk_player_dispose (GObject *object)
+{
+ SwfdecGtkPlayer *player = SWFDEC_GTK_PLAYER (object);
+
+ swfdec_gtk_player_set_playing (player, FALSE);
+ g_assert (player->playback == NULL);
+
+ G_OBJECT_CLASS (swfdec_gtk_player_parent_class)->dispose (object);
+}
+
+static void
+swfdec_gtk_player_class_init (SwfdecGtkPlayerClass * g_class)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (g_class);
+
+ object_class->dispose = swfdec_gtk_player_dispose;
+ object_class->get_property = swfdec_g...
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
...root);
- g_assert (g_hash_table_size (movies->nodes) == 0);
+#ifndef G_DISABLE_ASSERT
+ if (g_hash_table_size (movies->nodes) != 0) {
+ g_error ("%u items left in hash table", g_hash_table_size (movies->nodes));
+ }
+#endif
g_hash_table_destroy (movies->nodes);
G_OBJECT_CLASS (vivi_movie_list_parent_class)->dispose (object);
diff-tree 9a9bfa3d15f91d15beca8e7e926872029d1bae86 (from 317e8a19139a3dbf3ee2e291f7b5795bea7c2eb4)
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Aug 21 15:14:34 2007 +0200
various bug fixes
- crashers on removing
-...
2007 Aug 17
0
Branch 'vivi' - 3 commits - player/Makefile.am player/swfdec_debug_movies.c player/swfdec_debug_movies.h vivified/core vivified/ui
...es_removed, movies);
- g_signal_handlers_disconnect_by_func (movies->player, swfdec_debug_movies_added, movies);
- g_object_unref (movies->player);
- g_assert (g_node_n_children (movies->root) == 0);
- g_node_destroy (movies->root);
- g_hash_table_destroy (movies->nodes);
-
- G_OBJECT_CLASS (swfdec_debug_movies_parent_class)->dispose (object);
-}
-
-static void
-swfdec_debug_movies_class_init (SwfdecDebugMoviesClass *class)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (class);
-
- object_class->dispose = swfdec_debug_movies_dispose;
-}
-
-static void
-swfdec_debug_movies_i...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...t;swfdec_as_stack.h"
+#include "swfdec_debug.h"
+
+G_DEFINE_TYPE (SwfdecAsArray, swfdec_as_array, SWFDEC_TYPE_AS_OBJECT)
+
+static void
+swfdec_as_array_dispose (GObject *object)
+{
+ SwfdecAsArray *array = SWFDEC_AS_ARRAY (object);
+
+ g_array_free (array->values, TRUE);
+
+ G_OBJECT_CLASS (swfdec_as_array_parent_class)->dispose (object);
+}
+
+static void
+swfdec_as_array_mark (SwfdecAsObject *object)
+{
+ SwfdecAsArray *array = SWFDEC_AS_ARRAY (object);
+ guint i;
+
+ for (i = 0; i < array->values->len; i++) {
+ swfdec_as_value_mark (&g_array_index (array->...
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
...L);
- gtk_text_view_scroll_to_mark (view, mark, 0.0, TRUE, 0.0, 0.0);
-}
-
-static void
-vivi_command_line_dispose (GObject *object)
-{
- ViviCommandLine *cl = VIVI_COMMAND_LINE (object);
-
- g_signal_handlers_disconnect_by_func (cl->app, vivi_command_line_append_message, cl->view);
-
- G_OBJECT_CLASS (vivi_command_line_parent_class)->dispose (object);
-}
-
-static void
-vivi_command_line_class_init (ViviCommandLineClass *klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- object_class->dispose = vivi_command_line_dispose;
-}
+#include "vivi_vivi_docklet.h"...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...DEFAULT, swfdec_gtk_loader_open_cb, gtk);
- SWFDEC_LOADER (gtk)->url = gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_PASSWORD);
- return SWFDEC_LOADER (gtk);
-}
-
static void
swfdec_gtk_loader_dispose (GObject *object)
{
@@ -190,18 +178,14 @@ swfdec_gtk_loader_dispose (GObject *obje
G_OBJECT_CLASS (swfdec_gtk_loader_parent_class)->dispose (object);
}
-static SwfdecLoader *
-swfdec_gtk_loader_load (SwfdecLoader *loader, const char *url,
+static void
+swfdec_gtk_loader_load (SwfdecLoader *loader,
SwfdecLoaderRequest request, const char *data, gsize data_len)
{
SwfdecGtkLoader *...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...;
+ sound->decoded = NULL;
+ }
+}
static void
swfdec_sound_dispose (GObject *object)
{
SwfdecSound * sound = SWFDEC_SOUND (object);
- if (sound->decoded)
- swfdec_buffer_unref (sound->decoded);
+ if (sound->encoded)
+ swfdec_buffer_unref (sound->encoded);
G_OBJECT_CLASS (swfdec_sound_parent_class)->dispose (object);
}
@@ -49,8 +60,11 @@ static void
swfdec_sound_class_init (SwfdecSoundClass * g_class)
{
GObjectClass *object_class = G_OBJECT_CLASS (g_class);
+ SwfdecCachedClass *cached_class = SWFDEC_CACHED_CLASS (g_class);
object_class->dispose =...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...;height);
+ break;
+ case PROP_RATE:
+ g_value_set_double (value, player->rate / 256.0);
+ break;
case PROP_MOUSE_CURSOR:
g_value_set_enum (value, player->mouse_cursor);
break;
@@ -1408,6 +1420,15 @@ swfdec_player_class_init (SwfdecPlayerClass *klass)
g_object_class_install_property (object_class, PROP_INITIALIZED,
g_param_spec_boolean ("initialized", "initialized", "TRUE when the player has initialized its basic values",
FALSE, G_PARAM_READABLE));
+ g_object_class_install_property (object_class, PROP_DEFAULT_WIDTH,
+...
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
...c/swfdec_net_stream.c
@@ -216,6 +216,8 @@ swfdec_net_stream_dispose (GObject *obje
if (stream->decoder)
swfdec_video_codec_finish (stream->codec, stream->decoder);
swfdec_net_stream_set_loader (stream, NULL);
+ g_object_unref (stream->conn);
+ stream->conn = NULL;
G_OBJECT_CLASS (swfdec_net_stream_parent_class)->dispose (object);
}
@@ -236,16 +238,35 @@ swfdec_net_stream_init (SwfdecNetStream
}
SwfdecNetStream *
-swfdec_net_stream_new (SwfdecPlayer *player)
+swfdec_net_stream_new (SwfdecPlayer *player, SwfdecConnection *conn)
{
- SwfdecNetStream *stream = g_obje...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...EFINE_TYPE (SwfeditFile, swfedit_file, SWFEDIT_TYPE_TOKEN)
+
+static void
+swfedit_file_dispose (GObject *object)
+{
+ SwfeditFile *file = SWFEDIT_FILE (object);
+
+ g_list_foreach (file->tags, (GFunc) g_object_unref, NULL);
+ g_list_free (file->tags);
+ g_free (file->filename);
+
+ G_OBJECT_CLASS (swfedit_file_parent_class)->dispose (object);
+}
+
+static void *
+zalloc (void *opaque, unsigned int items, unsigned int size)
+{
+ return g_malloc (items * size);
+}
+
+static void
+zfree (void *opaque, void *addr)
+{
+ g_free (addr);
+}
+
+static SwfdecBuffer *
+swfenc_file_inflate (Swfdec...
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...;loader);
+ load_object->loader = NULL;
+ }
+ g_free (load_object->text);
+ load_object->text = NULL;
+}
+
+static void
+swfdec_load_object_dispose (GObject *object)
+{
+ SwfdecLoadObject *load_object = SWFDEC_LOAD_OBJECT (object);
+
+ swfdec_load_object_reset (load_object);
+
+ G_OBJECT_CLASS (swfdec_load_object_parent_class)->dispose (object);
+}
+
+static void
+swfdec_load_object_class_init (SwfdecLoadObjectClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->dispose = swfdec_load_object_dispose;
+}
+
+static void
+swfdec_load_object_init (...