summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-caja-wrap-table.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test-caja-wrap-table.c b/test/test-caja-wrap-table.c
index c95c3e7c..463870a6 100644
--- a/test/test-caja-wrap-table.c
+++ b/test/test-caja-wrap-table.c
@@ -34,8 +34,13 @@ main (int argc, char* argv[])
GTK_POLICY_AUTOMATIC);
/* Viewport */
- gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scroller),
- emblems_table);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_container_add (GTK_CONTAINER (scroller),
+ emblems_table);
+#else
+ gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scroller),
+ emblems_table);
+#endif
gtk_container_add (GTK_CONTAINER (window), scroller);