[gnome-desktop/ebassi/update-for-gtk4: 11/23] tests: Ignore deprecated API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop/ebassi/update-for-gtk4: 11/23] tests: Ignore deprecated API
- Date: Tue, 9 Nov 2021 16:19:44 +0000 (UTC)
commit 84faa3dbbbf0012916490e3d48a126ef87c947f1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Oct 26 23:47:45 2021 +0100
tests: Ignore deprecated API
The test will have to be rewritten for GTK4 anyway.
tests/wallclock-reftest.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/wallclock-reftest.c b/tests/wallclock-reftest.c
index e6026032..25be12c9 100644
--- a/tests/wallclock-reftest.c
+++ b/tests/wallclock-reftest.c
@@ -209,6 +209,7 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode)
}
break;
case SNAPSHOT_DRAW:
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
bg = gdk_window_get_background_pattern (gtk_widget_get_window (widget));
if (bg)
{
@@ -216,6 +217,7 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode)
cairo_paint (cr);
}
gtk_widget_draw (widget, cr);
+G_GNUC_END_IGNORE_DEPRECATIONS
break;
default:
g_assert_not_reached();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]