diff options
Diffstat (limited to 'gtk/tests')
-rw-r--r-- | gtk/tests/Makefile.am | 2 | ||||
-rw-r--r-- | gtk/tests/treeview-scrolling.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gtk/tests/Makefile.am b/gtk/tests/Makefile.am index 49a9dcb9ca..c492ce65e4 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 ade22289ad..d3afe04728 100644 --- a/gtk/tests/treeview-scrolling.c +++ b/gtk/tests/treeview-scrolling.c @@ -125,6 +125,8 @@ 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 (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 (); |