Provide more info for animation players
Submitted by Francesco Montorsi
For a number of different uses of GdkPixbufAnimation API, it's fundamental to know the number of frames available inside an animation object and also the frame associated with an animation iter.
The attached patch adds the following functions:
gint gdk_pixbuf_animation_get_frame_count(GdkPixbufAnimation *animation); gint gdk_pixbuf_animation_iter_get_current_frame(GdkPixbufAnimationIter *iter);
SOME NOTES ABOUT THE PATCH:
- I've seen that sometimes "int" is used and other times "gint" is used. I've used "int" but maybe it would be more correct to use "gint" ?
g_return_val_if_failreturns -1 in case it fails. Maybe it should return zero?
- I've not used tabs in my patch, sorry; however I think there should be some tool to "tabify" the patch before applying it, isn't it ?
Version: git master