User7723337
User7723337

Reputation: 12018

GTK transition effects

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?

Upvotes: 2

Views: 2316

Answers (3)

liberforce
liberforce

Reputation: 11454

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

Upvotes: 0

Humberto Pinheiro
Humberto Pinheiro

Reputation: 1184

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

Upvotes: 0

ptomato
ptomato

Reputation: 57940

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.

Upvotes: 3

Related Questions