search for: g_string_trunc

Displaying 1 result from an estimated 1 matches for "g_string_trunc".

2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...ter = g_slist_insert (iter, findex_new, 1); @@ -1352,6 +1360,11 @@ swfdec_text_field_movie_set_text (SwfdecTextFieldMovie *text, const char *str, g_return_if_fail (SWFDEC_IS_TEXT_FIELD_MOVIE (text)); g_return_if_fail (str != NULL); + if (text->format_new == NULL) { + text->input = g_string_truncate (text->input, 0); + return; + } + // remove old formatting info iter = text->formats; while (iter) { @@ -1368,6 +1381,11 @@ swfdec_text_field_movie_set_text (SwfdecTextFieldMovie *text, const char *str, block->index_ = 0; g_assert (SWFDEC_IS_TEXT_FORMAT (text->form...