summaryrefslogtreecommitdiff
path: root/test/test-caja-wrap-table.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 17:29:33 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 17:29:33 +0100
commitccfe6d5364ecfd8f3bafef853e6a9fc7457a0af4 (patch)
tree0f8977615dfb573a5f45b7c30be12838edd57b8b /test/test-caja-wrap-table.c
parent2de22faab6d8918f6d5001edeb3f794cac829710 (diff)
downloadcaja-ccfe6d5364ecfd8f3bafef853e6a9fc7457a0af4.tar.bz2
caja-ccfe6d5364ecfd8f3bafef853e6a9fc7457a0af4.tar.xz
GTK3 test-caja-wrap-table: don't use deprecated gtk_scrolled_window_add_with_viewport ()
gtk_scrolled_window_add_with_viewport () --> gtk_container_add ()
Diffstat (limited to 'test/test-caja-wrap-table.c')
-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);