[Swfdec-commits] 4 commits - swfdec/swfdec_audio_decoder.c swfdec/swfdec_audio_decoder.h swfdec/swfdec_text_field_movie.c
Benjamin Otte
company at kemper.freedesktop.org
Tue Jun 24 09:35:37 PDT 2008
swfdec/swfdec_audio_decoder.c | 1 +
swfdec/swfdec_audio_decoder.h | 2 +-
swfdec/swfdec_text_field_movie.c | 7 ++++++-
3 files changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 6b4b7dbd01842a43469051aa5128c90e9c293ea2
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jun 24 17:59:59 2008 +0200
fix docs
diff --git a/swfdec/swfdec_audio_decoder.c b/swfdec/swfdec_audio_decoder.c
index 7da1a86..2c0da78 100644
--- a/swfdec/swfdec_audio_decoder.c
+++ b/swfdec/swfdec_audio_decoder.c
@@ -79,6 +79,7 @@ swfdec_audio_decoder_prepare (guint codec, SwfdecAudioFormat format, char **miss
/**
* swfdec_audio_decoder_new:
+ * @codec: codec id
* @format: #SwfdecAudioCodec to decode
*
* Creates a decoder suitable for decoding @format. If no decoder is available
commit 91814a21253af20591a049281d715ef863bf5c23
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jun 24 14:58:59 2008 +0200
fix comments
diff --git a/swfdec/swfdec_audio_decoder.h b/swfdec/swfdec_audio_decoder.h
index 24e52f5..e0e2960 100644
--- a/swfdec/swfdec_audio_decoder.h
+++ b/swfdec/swfdec_audio_decoder.h
@@ -51,7 +51,7 @@ struct _SwfdecAudioDecoder
/*< private >*/
guint codec; /* codec this decoder uses */
SwfdecAudioFormat format; /* format the codec was initialized with */
- gboolean error; /* if this codec is in an error state */
+ gboolean error; /* if this decoder is in an error state */
};
struct _SwfdecAudioDecoderClass
commit 34c31d79bebb669de81a4b3f586883f45867d04a
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jun 24 14:51:28 2008 +0200
don't autosize x direction when word wrapping is in effect
diff --git a/swfdec/swfdec_text_field_movie.c b/swfdec/swfdec_text_field_movie.c
index 43c314a..e80408b 100644
--- a/swfdec/swfdec_text_field_movie.c
+++ b/swfdec/swfdec_text_field_movie.c
@@ -140,6 +140,10 @@ swfdec_text_field_movie_autosize (SwfdecTextFieldMovie *text)
x1 -= text->extents.x1 - text->extents.x0;
z1 -= text->extents.y1 - text->extents.y0;
+ /* when word wrapping is enabled, don't resize width */
+ if (swfdec_text_layout_get_word_wrap (text->layout))
+ x1 = 0;
+
if (x1 == 0 && z1 == 0)
return;
commit edc11596a5f6afb594011b4ac17eb0a729660a07
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jun 24 13:52:49 2008 +0200
add a quickfix for onChanged
Maybe it makes some text entries work
diff --git a/swfdec/swfdec_text_field_movie.c b/swfdec/swfdec_text_field_movie.c
index 0782e64..43c314a 100644
--- a/swfdec/swfdec_text_field_movie.c
+++ b/swfdec/swfdec_text_field_movie.c
@@ -482,7 +482,8 @@ swfdec_text_field_movie_iterate (SwfdecActor *actor)
SwfdecTextFieldMovie *text = SWFDEC_TEXT_FIELD_MOVIE (actor);
while (text->changed) {
- swfdec_actor_queue_script (actor, SWFDEC_EVENT_CHANGED);
+ swfdec_player_add_action (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (text)->context),
+ SWFDEC_ACTOR (text), SWFDEC_EVENT_CHANGED, 0, SWFDEC_PLAYER_ACTION_QUEUE_NORMAL);
text->changed--;
}
More information about the Swfdec-commits
mailing list