summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-25 09:20:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-03-25 10:14:35 -0400
commitb23ac5c8da31f0312a10ffb88117a46780979c1b (patch)
treef7ebf7f4a8a69da332df218a2a1ffea733e5196d /tests
parent81e61b9abfe39444b1a2ea7ea95cdc607974d711 (diff)
downloadgtk+-b23ac5c8da31f0312a10ffb88117a46780979c1b.tar.gz
Deprecate gtk_widget_translate_coordinates
Update all (non-deprecated) callers to use gtk_widget_compute_point instead. Fixes: #5697
Diffstat (limited to 'tests')
-rw-r--r--tests/testoverlay.c2
-rw-r--r--tests/testwidgettransforms.c2
-rw-r--r--tests/testwindowdrag.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index 83c551998f..b7e91335ce 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -1,6 +1,8 @@
#include <string.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static const char *css =
".overlay-green {"
" background-image: none;"
diff --git a/tests/testwidgettransforms.c b/tests/testwidgettransforms.c
index c729768589..dc6232968f 100644
--- a/tests/testwidgettransforms.c
+++ b/tests/testwidgettransforms.c
@@ -2,6 +2,8 @@
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static const char *css =
"test>button {"
" all: unset; "
diff --git a/tests/testwindowdrag.c b/tests/testwindowdrag.c
index 8b60835165..8946603e1d 100644
--- a/tests/testwindowdrag.c
+++ b/tests/testwindowdrag.c
@@ -1,5 +1,7 @@
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
start_resize (GtkGestureClick *gesture,
int n_press,