[gnome-desktop/ebassi/update-for-gtk4] tests: Ignore deprecated API



commit 13e49be572670b76b3b605bb2acfe118fb63e326
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]