summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-11-05 13:05:56 +0100
committerBenjamin Otte <otte@redhat.com>2014-11-05 13:06:32 +0100
commit0e44722fd8de9850af6f720036f736f8943e617c (patch)
tree8a4f45115d33a0e633373c52ef9f86079e50a722 /tests
parentdd7a851f69f56c69fd6a70518367dec375694fe3 (diff)
downloadgtk+-0e44722fd8de9850af6f720036f736f8943e617c.tar.gz
tests: Add deprecation guards
It's the last test still spewing these and I'm too lazy to do a proper fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/testoverlay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index d59032c33a..0aded3702e 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -27,7 +27,9 @@ test_nonzerox (void)
overlay = gtk_overlay_new ();
gdk_rgba_parse (&color, "red");
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_override_background_color (overlay, 0, &color);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_grid_attach (GTK_GRID (grid), overlay, 1, 1, 1, 1);
text = gtk_text_view_new ();
@@ -101,7 +103,9 @@ test_relative (void)
overlay = gtk_overlay_new ();
gdk_rgba_parse (&color, "yellow");
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_override_background_color (overlay, 0, &color);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_container_add (GTK_CONTAINER (win), overlay);
grid = gtk_grid_new ();
@@ -376,7 +380,9 @@ test_stacking (void)
overlay = gtk_overlay_new ();
main_child = gtk_event_box_new ();
gdk_rgba_parse (&color, "green");
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_override_background_color (main_child, 0, &color);
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_set_hexpand (main_child, TRUE);
gtk_widget_set_vexpand (main_child, TRUE);
label = gtk_label_new ("Main child");