Re: How to play an animated gif?



On Wed, Apr 21, 2010 at 1:01 AM, Lothar Scholz <llothar web de> wrote:
> Hello gtk-list,

Hi,

> How can i play a smoothly animated gif?
> With smoothly i mean it should be rendered by a background thread so
> it does not stop while doing some work (the animation is some kind of
> progress bar).

Are you sure you want to display a custom gif image? You could use
GtkSpinner [0] for that purpose.

If you really don't want to use the standard GTK+ widget and would
rather use your custom image, maybe you can have a look at the code
that has been removed [1] from nautilus when they switched from their
custom throbber to GtkSpinner.

[0] http://library.gnome.org/devel/gtk/unstable/GtkSpinner.html
[1] http://git.gnome.org/browse/nautilus/commit/?id=d27a9a4260f76602a0c5e88706c1641e06515971

-- 
Alexandre Franke


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]