Displaying 4 results from an estimated 4 matches for "swfdec_text_format_new_no_properti".
Did you mean:
swfdec_text_format_new_no_properties
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
..._movie.c b/libswfdec/swfdec_text_field_movie.c
index e09a7f1..e9c3fed 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -934,6 +934,9 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
// format
text->format_new =
SWFDEC_TEXT_FORMAT (swfdec_text_format_new_no_properties (cx));
+ if (!text->format_new)
+ return;
+
swfdec_text_format_set_defaults (text->format_new);
text->format_new->color = text->text->color;
text->format_new->align = text->text->align;
diff --git a/libswfdec/swfdec_text_format.c b/libswfdec/swfdec_text_...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...EC_AS_VALUE_GET_OBJECT (&val));
}
+ // listen self
+ SWFDEC_AS_VALUE_SET_OBJECT (&val, SWFDEC_AS_OBJECT (movie));
+ swfdec_as_object_call (SWFDEC_AS_OBJECT (movie), SWFDEC_AS_STR_addListener,
+ 1, &val, NULL);
+
// format
text->format_new =
SWFDEC_TEXT_FORMAT (swfdec_text_format_new_no_properties (cx));
diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c
index 4b85cc9..4235111 100644
--- a/libswfdec/swfdec_text_field_movie_as.c
+++ b/libswfdec/swfdec_text_field_movie_as.c
@@ -1319,5 +1319,7 @@ swfdec_text_field_movie_construct (SwfdecAsContext *cx,...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...es (SwfdecAsContext *cx)
{
SwfdecAsValue val;
@@ -1219,7 +1219,8 @@ swfdec_text_format_copy (const SwfdecTextFormat *copy_from)
g_return_val_if_fail (SWFDEC_IS_TEXT_FORMAT (copy_from), NULL);
- object_to = swfdec_text_format_new (SWFDEC_AS_OBJECT (copy_from)->context);
+ object_to = swfdec_text_format_new_no_properties (
+ SWFDEC_AS_OBJECT (copy_from)->context);
if (object_to == NULL)
return NULL;
copy_to = SWFDEC_TEXT_FORMAT (object_to);
diff --git a/libswfdec/swfdec_text_format.h b/libswfdec/swfdec_text_format.h
index 85d6d3c..c0b1859 100644
--- a/libswfdec/swfdec_text_format.h
+++ b/libswf...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...SwfdecAsValue val;
+ gboolean needs_unuse;
+
+ needs_unuse = swfdec_sandbox_try_use (movie->resource->sandbox);
cx = SWFDEC_AS_OBJECT (movie)->context;
@@ -1138,7 +1143,7 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
text->format_new =
SWFDEC_TEXT_FORMAT (swfdec_text_format_new_no_properties (cx));
if (!text->format_new)
- return;
+ goto out;
swfdec_text_format_set_defaults (text->format_new);
text->format_new->color = text->text->color;
@@ -1171,6 +1176,10 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie)
swfdec_text_field_movie_set_l...