[gtk+] revealer-size: Fix animation setting



commit 8b70115d5eeece372f6976c407ed2dbcf12818d7
Author: Timm Bäder <mail baedert org>
Date:   Thu Mar 3 21:04:39 2016 +0100

    revealer-size: Fix animation setting
    
    Turn animations off before testing, for all test functions containing
    "no_animations".

 testsuite/gtk/revealer-size.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/testsuite/gtk/revealer-size.c b/testsuite/gtk/revealer-size.c
index 6c7cffc..8c09a49 100644
--- a/testsuite/gtk/revealer-size.c
+++ b/testsuite/gtk/revealer-size.c
@@ -11,7 +11,7 @@ keep_size (int      direction,
   gboolean animations_before;
   int min_height, min_width;
   int min_child_width, min_child_height;
-  GtkRevealer *revealer = gtk_revealer_new ();
+  GtkRevealer *revealer = GTK_REVEALER (gtk_revealer_new ());
   GtkWidget   *child    = gtk_button_new_with_label ("Some Text!");
   GtkSettings *settings = gtk_settings_get_default ();
 
@@ -110,7 +110,7 @@ slide_down_animations ()
 static void
 slide_down_no_animations ()
 {
-  keep_size (KEEP_WIDTH, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN, TRUE);
+  keep_size (KEEP_WIDTH, GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN, FALSE);
 }
 
 static void
@@ -122,7 +122,7 @@ slide_up_animations ()
 static void
 slide_up_no_animations ()
 {
-  keep_size (KEEP_WIDTH, GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP, TRUE);
+  keep_size (KEEP_WIDTH, GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP, FALSE);
 }
 
 int


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