search for: format_new

Displaying 16 results from an estimated 16 matches for "format_new".

Did you mean: format_hex
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...ions(-) New commits: commit 7f1ffc36007dd423124e030feb5961d75098279b Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sun Oct 28 15:32:08 2007 +0200 Don't crash in TextField code when TextFormat's creation fails (Fixes: 12974) Also create an object in swfdec_text_format_new even if _global.TextFormat is missing diff --git a/libswfdec/swfdec_text_field_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...
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
...upported"); + + text->text->embed_fonts = value; } static void @@ -619,8 +619,7 @@ swfdec_text_field_movie_get_textColor (SwfdecAsContext *cx, SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, ""); - swfdec_as_object_get_variable (SWFDEC_AS_OBJECT (text->format_new), - SWFDEC_AS_STR_color, ret); + SWFDEC_AS_VALUE_SET_NUMBER (ret, text->format_new->color); } // This doesn't work the same way as TextFormat's color setting @@ -631,18 +630,16 @@ swfdec_text_field_movie_set_textColor (SwfdecAsContext *cx, { SwfdecTextFieldMovie *text;...
2007 Oct 14
0
5 commits - 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_xml.c libswfdec/swfdec_xml.h
...swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 304e8e8..69a7a68 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -542,8 +542,10 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie) swfdec_text_format_set_defaults (text->format_new); text->format_new->color = text->text->color; text->format_new->align = text->text->align; - if (text->text->font != NULL && text->text->font->name != NULL) - text->format_new->font = text->text->font->name; + if (text->te...
2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...l.c | 32 +++++++++++++++++-------------- 2 files changed, 36 insertions(+), 14 deletions(-) New commits: commit e1f14212d5a236453dd64426cfde8e6646b526d7 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Nov 1 16:32:52 2007 +0200 Don't crash in TextField when swfdec_text_format_new or _copy return NULL diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 4dd9c07..5d499b2 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -1063,6 +1063,10 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFi...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...E_ADVANCED -} SwfdecAntiAliasType; - -typedef enum { - SWFDEC_GRID_FIT_TYPE_NONE, - SWFDEC_GRID_FIT_TYPE_PIXEL, - SWFDEC_GRID_FIT_TYPE_SUBPIXEL -} SwfdecGridFitType; - struct _SwfdecTextFieldMovie { SwfdecMovie movie; @@ -67,17 +56,9 @@ struct _SwfdecTextFieldMovie { SwfdecTextFormat * format_new; GSList * formats; - SwfdecAntiAliasType anti_alias_type; gboolean condense_white; gboolean embed_fonts; - SwfdecGridFitType grid_fit_type; - guint hscroll; - gboolean mouse_wheel_enabled; - const char * restrict_; - guint scroll; - int sharpness; SwfdecStyleSheet *...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...c_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index b56466d..15b945f 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -893,6 +893,8 @@ swfdec_text_field_movie_mark (SwfdecAsObject *object) swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->format_new)); if (text->style_sheet != NULL) swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->style_sheet)); + if (text->style_sheet_input != NULL) + swfdec_as_string_mark (text->style_sheet_input); if (text->restrict_ != NULL) swfdec_as_string_mark (text->restrict_); @@...
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
..._length) { diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index a09610e..2ca9424 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -953,8 +953,8 @@ swfdec_text_field_movie_init_movie (SwfdecMovie *movie) text->format_new->indent = text->text->indent / 20; text->format_new->leading = text->text->leading / 20; - text->border_color = SWFDEC_COLOR_COMBINE (0, 0, 0, 255); - text->background_color = SWFDEC_COLOR_COMBINE (255, 255, 255, 255); + text->border_color = SWFDEC_COLOR_COMBIN...
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...dec/swfdec_text_field_movie_as.c index a40d456..32ce75e 100644 --- a/libswfdec/swfdec_text_field_movie_as.c +++ b/libswfdec/swfdec_text_field_movie_as.c @@ -626,7 +626,7 @@ swfdec_text_field_movie_setNewTextFormat (SwfdecAsContext *cx, if (!SWFDEC_IS_TEXT_FORMAT (obj)) return; - text->format_new = swfdec_text_format_copy (SWFDEC_TEXT_FORMAT (obj)); + swfdec_text_format_add (text->format_new, SWFDEC_TEXT_FORMAT (obj)); } SWFDEC_AS_NATIVE (104, 102, swfdec_text_field_movie_setTextFormat) commit a207c0002748a1a42151252db7b0ba319798bb37 Author: Pekka Lampila <pekka.lampila at iki.fi...
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
...,7 +876,6 @@ swfdec_text_field_movie_mark (SwfdecAsObject *object) text = SWFDEC_TEXT_FIELD_MOVIE (object); - swfdec_as_string_mark (text->text_display); if (text->variable != NULL) swfdec_as_string_mark (text->variable); swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->format_new)); @@ -998,6 +997,7 @@ swfdec_text_field_movie_init (SwfdecTextFieldMovie *text) text->surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 1, 1); text->cr = cairo_create (text->surface); + text->input = g_string_new (""); text->scroll = 1; text->mou...
2007 Oct 18
0
14 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_format.c
...ormats->data)->format); + text->formats = g_slist_append (text->formats, findex); } text->text_display = commit 018461515292643e89048c7eccff3bd1b2bd249f Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Thu Oct 18 19:55:42 2007 +0300 TextField: Use copy of format_new for new text, not just direct reference diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 6fce9b6..c0263ed 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -1535,7 +1535,7 @@ swfdec_text_field_movie_set_text (S...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...iter->data; @@ -341,41 +341,40 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p) } } } + } - tag = g_new0 (ParserTag, 1); - tag->name = name; - tag->name_length = name_length; - tag->format = SWFDEC_TEXT_FORMAT (swfdec_text_format_new (data->cx)); - tag->index = g_utf8_strlen (data->text->str, -1); - - data->tags_open = g_slist_prepend (data->tags_open, tag); - - // set format based on tag - object = SWFDEC_AS_OBJECT (tag->format); - SWFDEC_AS_VALUE_SET_BOOLEAN (&val, TRUE); - -...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
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
...VIE (movie); SwfdecAsContext *cx; 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...
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
...963,6 +963,8 @@ swfdec_text_field_movie_getNewTextFormat (SwfdecAsContext *cx, SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, ""); + swfdec_text_format_init_properties (cx); + SWFDEC_AS_VALUE_SET_OBJECT (ret, SWFDEC_AS_OBJECT (swfdec_text_format_copy (text->format_new))); } diff --git a/libswfdec/swfdec_text_format.c b/libswfdec/swfdec_text_format.c index 4fe215e..e5ab1fa 100644 --- a/libswfdec/swfdec_text_format.c +++ b/libswfdec/swfdec_text_format.c @@ -1095,7 +1095,7 @@ swfdec_text_format_clear (SwfdecTextFormat *format) swfdec_text_format_mark_set (forma...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...) { + swfdec_style_sheet_remove_listener ( + SWFDEC_STYLESHEET (text->style_sheet), SWFDEC_AS_OBJECT (text)); + } text->style_sheet = NULL; } @@ -898,7 +900,7 @@ swfdec_text_field_movie_mark (SwfdecAsObject *object) } swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->format_new)); if (text->style_sheet != NULL) - swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->style_sheet)); + swfdec_as_object_mark (text->style_sheet); if (text->style_sheet_input != NULL) swfdec_as_string_mark (text->style_sheet_input); if (text->restrict_ != NULL) @@...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...c_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 4f238b7..dbdf4fc 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -561,6 +561,8 @@ swfdec_text_field_movie_mark (SwfdecAsObject *object) swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->format_new)); if (text->style_sheet != NULL) swfdec_as_object_mark (SWFDEC_AS_OBJECT (text->style_sheet)); + if (text->restrict_ != NULL) + swfdec_as_string_mark (text->restrict_); SWFDEC_AS_OBJECT_CLASS (swfdec_text_field_movie_parent_class)->mark (object); } @@ -646,6 +648,8...