Don't double the delay time of the first frame. (#431997, Björn

2007-04-25  Matthias Clasen <mclasen@redhat.com>

        * gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
        Don't double the delay time of the first frame.  (#431997,
        Björn Lindqvist)



svn path=/trunk/; revision=17634
This commit is contained in:
Matthias Clasen 2007-04-25 14:38:47 +00:00 committed by Matthias Clasen
parent f614fed858
commit 75efa95acb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
Don't double the delay time of the first frame. (#431997,
Björn Lindqvist)
2007-04-25 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-scaled-anim.c (gdk_pixbuf_scaled_anim_iter_finalize):

View File

@ -426,7 +426,7 @@ gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation,
g_return_if_fail (animation != NULL);
g_return_if_fail (pixbuf != NULL);
nframe = g_list_length (animation->frames) + 1;
nframe = g_list_length (animation->frames);
frame = g_new0 (GdkPixbufFrame, 1);
frame->delay_time = (gint) (1000 / animation->rate);