From 0e44722fd8de9850af6f720036f736f8943e617c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 5 Nov 2014 13:05:56 +0100 Subject: [PATCH] tests: Add deprecation guards It's the last test still spewing these and I'm too lazy to do a proper fix. --- tests/testoverlay.c | 6 ++++++ 1 file changed, 6 insertions(+) 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");