[gtk+] tests: Add deprecation guards
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Add deprecation guards
- Date: Wed, 5 Nov 2014 12:08:53 +0000 (UTC)
commit 0e44722fd8de9850af6f720036f736f8943e617c
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 5 13:05:56 2014 +0100
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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index d59032c..0aded37 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]