[gtk+] tests: Update adjustment usage for sealing



commit bb648319873f863918a99a3598c88db496567bc0
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jan 5 13:27:12 2011 +0100

    tests: Update adjustment usage for sealing

 gtk/tests/treeview-scrolling.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index 40d5b81..b165f43 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -892,7 +892,7 @@ scroll_new_row_tree (ScrollFixture *fixture,
 			gtk_main_iteration ();
 
 		/* Test position, the scroll bar must be at the end */
-		g_assert (vadjustment->value == vadjustment->upper - vadjustment->page_size);
+		g_assert (gtk_adjustment_get_value (vadjustment) == gtk_adjustment_get_upper (vadjustment) - gtk_adjustment_get_page_size (vadjustment));
 	}
 }
 



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