2
votes

i am just a beginner with gtk. i have created some of the example of GTK with GTK+Glade.

but i want to do some transition effects (Animation) on my Widgets/Windows/Components While they appear/disappear on screen.

how do we do it with GTK and Glade?

3

3 Answers

3
votes

If you mean transition effects like windows fading in and dropdown lists animating, then the answer is you can't. These effects are the domain of the window manager. To get them you have to use a window manager with fancy effects, like Compiz.

This also means that anyone using your application could be using any window manager, so you can't count on them seeing the same effects. That's why you can't program them in GTK.

0
votes

Using compiz or in windows set the opacity of your Gtk window to increase using a timer, overriding the on_expose event.

0
votes

In fact you can do that using Clutter and Clutter-GTK wich integrates GTK inside Clutter.