summaryrefslogtreecommitdiff
path: root/tests/teststack.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-04-21 14:22:35 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-04-21 21:51:25 -0400
commite72a78c4e6052668a3afde4a4b7e48a4bdb7b099 (patch)
tree9f8fe59a257fea5e837695a65f436ca4b6e3a436 /tests/teststack.c
parent8ca73e3258dec347554bcbce824793a852324731 (diff)
downloadgtk+-e72a78c4e6052668a3afde4a4b7e48a4bdb7b099.tar.gz
Add a way to specify transition types on the fly
Add a gtk_stack_set_visible_child_full that takes a transition type.
Diffstat (limited to 'tests/teststack.c')
-rw-r--r--tests/teststack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/teststack.c b/tests/teststack.c
index 30837c69f1..5a6a8cf531 100644
--- a/tests/teststack.c
+++ b/tests/teststack.c
@@ -52,8 +52,7 @@ on_back_button_clicked (GtkButton *button, GtkStack *stack)
{
if (g_str_equal (vis, seq[i]))
{
- gtk_stack_set_transition_type (stack, GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
- gtk_stack_set_visible_child_name (stack, seq[i - 1]);
+ gtk_stack_set_visible_child_full (stack, seq[i - 1], GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT);
break;
}
}
@@ -72,8 +71,7 @@ on_forward_button_clicked (GtkButton *button, GtkStack *stack)
{
if (g_str_equal (vis, seq[i]))
{
- gtk_stack_set_transition_type (stack, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
- gtk_stack_set_visible_child_name (stack, seq[i + 1]);
+ gtk_stack_set_visible_child_full (stack, seq[i + 1], GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT);
break;
}
}