Displaying 20 results from an estimated 41 matches for "g_object_notify".
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...initialize,
+ sizeof (swfdec_initialize), 8);
+
+ if (context->state == SWFDEC_AS_CONTEXT_NEW) {
+ context->state = SWFDEC_AS_CONTEXT_RUNNING;
+ swfdec_as_object_set_constructor (player->roots->data, player->MovieClip);
+ }
}
+ player->initialized = TRUE;
+ g_object_notify (G_OBJECT (player), "initialized");
+ } else {
+ swfdec_player_remove_timeout (player, &player->iterate_timeout);
}
+
SWFDEC_INFO ("initializing player to size %ux%u and rate %u/256", width, height, rate);
- player->rate = rate;
- player->width = width;...
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
2007 Aug 02
0
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
...size_internal (SwfdecPlayer *player, int width, int height)
+swfdec_player_update_size (gpointer playerp, gpointer unused)
{
- gboolean changed = FALSE;
+ SwfdecPlayer *player = playerp;
+ guint width, height;
- if (player->stage_width != width) {
- player->stage_width = width;
- g_object_notify (G_OBJECT (player), "width");
- changed = TRUE;
- }
- if (player->stage_height != height) {
- player->stage_height = height;
- g_object_notify (G_OBJECT (player), "height");
- changed = TRUE;
- }
- swfdec_player_update_scale (player);
- if (changed &&a...
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
...d height not set\n");
goto error;
commit 9bb3e01a2b2ac248146bcefc497df43e3c38728f
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Nov 7 19:46:55 2007 +0100
add "default-width", "default-height" and "rate" properties
This is so we can g_object_notify() about them when they change
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 37b6f56..dd15962 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -600,6 +600,9 @@ enum {
PROP_0,
PROP_CACHE_SIZE,
PROP_INITIALIZED,
+ PROP_DEFAULT_WIDTH,
+ PR...
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
...mpare_depths);
} else {
- SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
+ SwfdecPlayerPrivate *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context)->priv;
player->roots = g_list_sort (player->roots, swfdec_movie_compare_depths);
}
g_object_notify (G_OBJECT (movie), "depth");
@@ -1546,7 +1548,7 @@ swfdec_movie_new (SwfdecPlayer *player, int depth, SwfdecMovie *parent, SwfdecRe
/* invalidate the parent, so it gets visible */
swfdec_movie_queue_update (parent, SWFDEC_MOVIE_INVALID_CHILDREN);
} else {
- player->root...
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
...ong ("loaded", "loaded", "bytes already loaded",
+ 0, G_MAXULONG, 0, G_PARAM_READWRITE));
}
static void
@@ -420,6 +427,7 @@ swfdec_loader_push (SwfdecLoader *loader
g_return_if_fail (buffer != NULL);
swfdec_buffer_queue_push (loader->queue, buffer);
+ g_object_notify (G_OBJECT (loader), "loaded");
swfdec_loader_parse (loader);
}
@@ -437,8 +445,7 @@ swfdec_loader_eof (SwfdecLoader *loader)
loader->eof = TRUE;
if (loader->size == 0) {
- gulong bytes = swfdec_buffer_queue_get_offset (loader->queue) +
- swfdec_buffer_queue_...
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
...set the
+ * value to 0. To get a black beackground, use 0xFF000000.
+ **/
+void
+swfdec_player_set_background_color (SwfdecPlayer *player, unsigned int color)
+{
+ g_return_if_fail (SWFDEC_IS_PLAYER (player));
+
+ player->bgcolor_set = TRUE;
+ if (player->bgcolor == color)
+ return;
+ g_object_notify (G_OBJECT (player), "background-color");
+ if (swfdec_player_is_initialized (player)) {
+ g_signal_emit (player, signals[INVALIDATE], 0, 0.0, 0.0,
+ (double) player->width, (double) player->height);
+ }
+}
diff --git a/libswfdec/swfdec_player.h b/libswfdec/swfdec_player.h
inde...
2007 Nov 08
0
11 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource_request.c
...previously.
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 0450441..dd5484f 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1906,6 +1906,7 @@ swfdec_player_initialize (SwfdecPlayer *player, guint version,
player->initialized = TRUE;
g_object_notify (G_OBJECT (player), "initialized");
} else {
+ /* FIXME: need to kick all other movies out here */
swfdec_player_remove_timeout (player, &player->iterate_timeout);
}
@@ -1926,7 +1927,7 @@ swfdec_player_initialize (SwfdecPlayer *player, guint version,
player->i...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...Thu Aug 16 21:26:41 2007 +0200
debugging g_print() ...
diff --git a/vivified/core/vivi_debugger.c b/vivified/core/vivi_debugger.c
index 53ea0ea..670daff 100644
--- a/vivified/core/vivi_debugger.c
+++ b/vivified/core/vivi_debugger.c
@@ -76,9 +76,7 @@ vivi_debugger_break (ViviDebugger *debug
g_object_notify (G_OBJECT (app), "interrupted");
vivi_application_check (app);
- g_print (">>>\n");
g_main_loop_run (app->loop);
- g_print ("<<<\n");
g_main_loop_unref (app->loop);
app->loop = NULL;
diff-tree 46e54f2e89bcf81b9137cdba219d732...
2017 May 31
0
CentOS 7, X issue
...d init 3. And
waited. Almost a minute and a half later, it had not completed. I quit,
killed X, and then could init 3, then init 5.
I'm not finding clues as to what hung. In messages, I see
ay 31 12:07:14 <workstation name> gnome-session: (tracker-miner-fs:1931):
GLib-GObject-WARNING **: g_object_notify: object class 'UpDevice' has no
property named 'g-name-owner'
May 31 12:08:28 <workstation name> abrt-hook-ccpp: Process 31430 (Xorg) of
user 0 killed by SIGABRT - dumping core
May 31 12:08:29 <workstation name> gnome-session:
(gnome-settings-daemon:1677): Gdk-WARNING **...
2007 Aug 20
2
libswfdec/swfdec_player.c
libswfdec/swfdec_player.c | 1 -
1 file changed, 1 deletion(-)
New commits:
diff-tree fd36de2f156ce685d5095aaf323e0766ea017bd7 (from c3b035ca1583a420402b965506129bd73ff3f5fe)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Aug 20 16:02:09 2007 +0200
no need for that header
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index b303408..cd58cf5 100644
---
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
...@@ swfdec_player_get_size (SwfdecPlayer *pl
*height = player->stage_height;
}
+static void
+swfdec_player_set_size_internal (SwfdecPlayer *player, int width, int height)
+{
+ gboolean changed = FALSE;
+
+ if (player->stage_width != width) {
+ player->stage_width = width;
+ g_object_notify (G_OBJECT (player), "width");
+ changed = TRUE;
+ }
+ if (player->stage_height != height) {
+ player->stage_height = height;
+ g_object_notify (G_OBJECT (player), "height");
+ changed = TRUE;
+ }
+ swfdec_player_update_scale (player);
+ if (changed &&a...
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
...context.c
index 07eb2fd..3d3215c 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -170,6 +170,7 @@ swfdec_as_context_abort (SwfdecAsContext *context, const char *reason)
SWFDEC_ERROR ("%s", reason);
context->state = SWFDEC_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_DEB...
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
...urce_new (SWFDEC_PLAYER (player), player->speed);
+ g_source_attach (player->source, NULL);
+ } else if (!playing && player->source != NULL) {
+ g_source_destroy (player->source);
+ g_source_unref (player->source);
+ }
+ swfdec_gtk_player_update_audio (player);
+ g_object_notify (G_OBJECT (player), "playing");
+}
+
+/**
+ * swfdec_gtk_player_get_playing:
+ * @player: a #SwfdecGtkPlayer
+ *
+ * Queries if the player is playing.
+ *
+ * Returns: %TRUE if the player is playing
+ **/
+gboolean
+swfdec_gtk_player_get_playing (SwfdecGtkPlayer *player)
+{
+ g_return_va...
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
...+swfdec_loader_set_data_type (SwfdecLoader *loader, SwfdecLoaderDataType type)
+{
+ g_return_if_fail (SWFDEC_IS_LOADER (loader));
+ g_return_if_fail (loader->data_type == SWFDEC_LOADER_DATA_UNKNOWN);
+ g_return_if_fail (type != SWFDEC_LOADER_DATA_UNKNOWN);
+
+ loader->data_type = type;
+ g_object_notify (G_OBJECT (loader), "data-type");
+}
+
+/**
+ * swfdec_loader_data_type_get_extension:
+ * @type: a #SwfdecLoaderDataType
+ *
+ * Queries the extension to be used for data of the given @type.
+ *
+ * Returns: the typical extension for this data type or the empty string
+ * if the...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...player.c
@@ -241,6 +241,7 @@ swfdec_gtk_player_set_playing (SwfdecGtk
} else if (!playing && player->source != NULL) {
g_source_destroy (player->source);
g_source_unref (player->source);
+ player->source = NULL;
}
swfdec_gtk_player_update_audio (player);
g_object_notify (G_OBJECT (player), "playing");
diff-tree d05a09d1eaaa7643d01e35be398a11631213eeb1 (from 0268fcbb61254e6868b5fa7e95617204f03e3d35)
Author: Benjamin Otte <otte@gnome.org>
Date: Mon Mar 26 22:05:55 2007 +0200
s/swfdec_gtk_player_[gs]et_audio/&_enabled/
diff --git a/doc/swf...
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
...er.c b/libswfdec/swfdec_loader.c
index 828852a..32d0ca4 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -319,6 +319,7 @@ swfdec_loader_error_locked (SwfdecLoader
SWFDEC_ERROR ("error in loader %p: %s", loader, error);
loader->error = g_strdup (error);
g_object_notify (G_OBJECT (loader), "error");
+ swfdec_loader_target_parse (loader->target, loader);
}
void
diff --git a/libswfdec/swfdec_loadertarget.c b/libswfdec/swfdec_loadertarget.c
index 8fd629d..6af5504 100644
--- a/libswfdec/swfdec_loadertarget.c
+++ b/libswfdec/swfdec_loadertarget.c
@@ -...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...swfdec_loader_error_locked (SwfdecLoader *loader, const char *error)
-{
- if (loader->error)
- return;
-
- SWFDEC_WARNING ("error in %s %p: %s", G_OBJECT_TYPE_NAME (loader), loader, error);
+ loader->state = SWFDEC_LOADER_STATE_ERROR;
loader->error = g_strdup (error);
- g_object_notify (G_OBJECT (loader), "error");
if (loader->target)
- swfdec_loader_target_parse (loader->target, loader);
+ swfdec_player_add_external_action (loader->player, loader,
+ swfdec_loader_perform_error, NULL);
}
+/**
+ * swfdec_loader_open:
+ * @loader: a #SwfdecLoader
+ *...
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
...wfdec_loader.c b/libswfdec/swfdec_loader.c
index 4be84d1..7a22b34 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -353,6 +353,7 @@ swfdec_loader_open (SwfdecLoader *loader
if (url) {
swfdec_url_free (loader->url);
loader->url = swfdec_url_new (url);
+ g_object_notify (G_OBJECT (loader), "url");
}
if (loader->player)
swfdec_player_add_external_action (loader->player, loader, swfdec_loader_perform_open, NULL);
diff-tree bc7a31d8af9989ba3e42d9bd9431989f713cd847 (from 8e84cd0b6b34869ad07ff61bb44869ad201dea8c)
Author: Benjamin Otte <ott...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...ec_as_object.h>
#include <libswfdec/swfdec_as_types.h>
#include <libswfdec/swfdec_script.h>
diff-tree b8865e69f74f00f1c2b373003900b24592df341b (from 2421ba7779043c938533566a0a23a8ab5c3a84ff)
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Aug 14 12:47:48 2007 +0200
g_object_notify() about a new player
diff --git a/vivified/core/vivi_application.c b/vivified/core/vivi_application.c
index dd3b46f..fadfcde 100644
--- a/vivified/core/vivi_application.c
+++ b/vivified/core/vivi_application.c
@@ -163,6 +163,7 @@ vivi_application_reset (ViviApplication
g_object_unref (app->...
2008 Jan 02
0
4 commits - libswfdec/Makefile.am libswfdec/swfdec_movie.c libswfdec/swfdec_shape_parser.c test/dump.c test/trace
...g (object->context,
- SWFDEC_PLAYER (object->context)->priv->system->version));
- *flags = 0;
- return TRUE;
- }
movie = swfdec_movie_get_by_name (movie, variable, FALSE);
if (movie) {
@@ -1489,6 +1483,22 @@ swfdec_movie_set_depth (SwfdecMovie *movie, int depth)
g_object_notify (G_OBJECT (movie), "depth");
}
+static void
+swfdec_movie_set_version (SwfdecMovie *movie)
+{
+ SwfdecAsObject *o;
+ SwfdecAsContext *cx;
+ SwfdecAsValue val;
+
+ if (movie->parent != NULL)
+ return;
+
+ o = SWFDEC_AS_OBJECT (movie);
+ cx = o->context;
+ SWFDEC_AS_VALUE...