]> Pileus Git - ~andy/gtk/commit
stylecontext: Only create transitions conditionally
authorBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2012 09:30:21 +0000 (11:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2012 18:40:01 +0000 (20:40 +0200)
commit4a281edc872be418824fabf07b074b1a449a2e7a
treecc4274941a782e02e57cc2f45c3a41ce9e4130c3
parent7712d41b5e03381cf0307d3074d52e5c8d60a57e
stylecontext: Only create transitions conditionally

While regular animations should always be created, transitions should
not. This patch allows to express this by passing NULL as the values to
transition from.

It also adds a gtk_style_context_should_create_transitions() function
that returns TRUE when transitions should be created.
gtk/gtkcsscomputedvalues.c
gtk/gtkstylecontext.c