[gtk+/scrollable: 20/20] Reenabled treeview-scrolling test with fix to the test to call the new scrolling api.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/scrollable: 20/20] Reenabled treeview-scrolling test with fix to the test to call the new scrolling api.
- Date: Tue, 19 Oct 2010 15:49:28 +0000 (UTC)
commit 90ec7de6a9aebf512fd43e274e0b1e69e17698ea
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Oct 20 00:52:38 2010 +0900
Reenabled treeview-scrolling test with fix to the test to call the new scrolling api.
gtk/tests/Makefile.am | 2 +-
gtk/tests/treeview-scrolling.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/tests/Makefile.am b/gtk/tests/Makefile.am
index 49a9dcb..c492ce6 100644
--- a/gtk/tests/Makefile.am
+++ b/gtk/tests/Makefile.am
@@ -37,7 +37,7 @@ TEST_PROGS += treeview
treeview_SOURCES = treeview.c
treeview_LDADD = $(progs_ldadd)
-#TEST_PROGS += treeview-scrolling
+TEST_PROGS += treeview-scrolling
treeview_scrolling_SOURCES = treeview-scrolling.c
treeview_scrolling_LDADD = $(progs_ldadd)
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index e6d11ac..d3afe04 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -125,8 +125,9 @@ scroll_fixture_setup (ScrollFixture *fixture,
fixture->tree_view = gtk_tree_view_new_with_model (model);
g_object_unref (model);
- gtk_scrollable_set_min_display_width (fixture->tree_view, VIEW_WIDTH);
- gtk_scrollable_set_min_display_height (fixture->tree_view, VIEW_HEIGHT);
+ gtk_scrollable_set_min_display_width (GTK_SCROLLABLE (fixture->tree_view), VIEW_WIDTH);
+ gtk_scrollable_set_min_display_height (GTK_SCROLLABLE (fixture->tree_view), VIEW_HEIGHT);
+ gtk_widget_set_size_request (fixture->tree_view, VIEW_WIDTH, VIEW_HEIGHT);
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer, "editable", TRUE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]