Re: Gdk PixbufAnimation supported formats

2013-04-21 Thread Kip Warner
On Thu, 2013-04-18 at 02:08 -0700, Andrew Potter wrote: You can make a few png or jpg frames and hook up a g_timeout_add() callback to set the pixbuf on a GtkImage. I done similar when I needed to dynamically scale animated gifs. Be sure to stop your timeout on unmap()/unrealize(), especially

Gdk PixbufAnimation supported formats

2013-04-18 Thread Kip Warner
Hey list, I'm having some difficulty trying to track down the animated file formats supported by gdk_pixbuf_animation_new_from_file(). I am using the function via PyGI / GObject introspection. I know for a fact that it supports animated GIFs, but beyond that, I do not know (e.g. MNG? APNG?).

Re: Gdk PixbufAnimation supported formats

2013-04-18 Thread Tadej Borovšak
Hi. 2013/4/18 Kip Warner k...@thevertigo.com I've tried looking through the Gtk+ source in gdk/* and gtk/*, but maybe I've just been looking in the wrong places. I also tried looking through what relevant documentation I could find on the Gdk's C API, and didn't manage to find what I needed.

Re: Gdk PixbufAnimation supported formats

2013-04-18 Thread Kip Warner
On Thu, 2013-04-18 at 09:31 +0200, Tadej Borovšak wrote: Gtk+ uses gdk-pixbuf [1] library to load/store images. You can check what image formats your library supports by calling gdk-pixbuf-query-loaders [2] utility. Thanks Tadej. It looks like the only format that supports animation that I can

Re: Gdk PixbufAnimation supported formats

2013-04-18 Thread Andrew Potter
On Thu, Apr 18, 2013 at 12:40 AM, Kip Warner k...@thevertigo.com wrote: Thanks Tadej. It looks like the only format that supports animation that I can see on my system, and perhaps everywhere at best, is GIF. Do you have any suggestions for another approach to a simple animation that

Re: Gdk PixbufAnimation supported formats

2013-04-18 Thread Kip Warner
On Thu, 2013-04-18 at 10:22 +0200, Nicola Fontana wrote: Hi Kip, my best suggestion is not to use animations: I hate moving things in apps and I'm pretty sure I'm not alone. Hey Nicola. I hear you and I'm sure a lot of people agree. In this case, it's a user interface consideration that I