[gtk/deprecate-all-the-cells: 8/9] testsuite: Ignore deprecations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/deprecate-all-the-cells: 8/9] testsuite: Ignore deprecations
- Date: Sat, 8 Oct 2022 02:02:18 +0000 (UTC)
commit 0e186b128f7571c0146cfb207b778fac9e5c2579
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 7 21:15:03 2022 -0400
testsuite: Ignore deprecations
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
testsuite/gtk/builder.c | 2 ++
testsuite/gtk/filtermodel.c | 2 ++
testsuite/gtk/gtktreemodelrefcount.c | 1 +
testsuite/gtk/modelrefcount.c | 2 ++
testsuite/gtk/object.c | 2 ++
testsuite/gtk/sortmodel.c | 1 +
testsuite/gtk/treemodel.c | 2 ++
testsuite/gtk/treeview.c | 2 ++
8 files changed, 14 insertions(+)
---
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 88dc7c853a..1e15588b50 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -25,6 +25,8 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
#ifdef G_OS_WIN32
# define _BUILDER_TEST_EXPORT __declspec(dllexport)
#else
diff --git a/testsuite/gtk/filtermodel.c b/testsuite/gtk/filtermodel.c
index 974b81339b..f9826fb50c 100644
--- a/testsuite/gtk/filtermodel.c
+++ b/testsuite/gtk/filtermodel.c
@@ -21,6 +21,8 @@
#include "treemodel.h"
#include "gtktreemodelrefcount.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/* Left to do:
* - Proper coverage checking to see if the unit tests cover
* all possible cases.
diff --git a/testsuite/gtk/gtktreemodelrefcount.c b/testsuite/gtk/gtktreemodelrefcount.c
index 223d8a0d94..01a97a0c8c 100644
--- a/testsuite/gtk/gtktreemodelrefcount.c
+++ b/testsuite/gtk/gtktreemodelrefcount.c
@@ -18,6 +18,7 @@
#include "config.h"
#include "gtktreemodelrefcount.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* The purpose of this GtkTreeModel is to keep record of the reference count
* of each node. The reference count does not effect the functioning of
diff --git a/testsuite/gtk/modelrefcount.c b/testsuite/gtk/modelrefcount.c
index 48222dc243..18346e2636 100644
--- a/testsuite/gtk/modelrefcount.c
+++ b/testsuite/gtk/modelrefcount.c
@@ -18,6 +18,8 @@
#include "gtktreemodelrefcount.h"
#include "treemodel.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/* And the tests themselves */
static void
diff --git a/testsuite/gtk/object.c b/testsuite/gtk/object.c
index 045f3b48a9..96e9daa9cf 100644
--- a/testsuite/gtk/object.c
+++ b/testsuite/gtk/object.c
@@ -269,11 +269,13 @@ widget_test_properties (GtkWidget *widget,
static void
widget_fixups (GtkWidget *widget)
{
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* post-constructor for widgets that need additional settings to work correctly */
if (GTK_IS_COMBO_BOX_TEXT (widget))
{
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "test text");
}
+G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
diff --git a/testsuite/gtk/sortmodel.c b/testsuite/gtk/sortmodel.c
index f717e4a894..39bab183cd 100644
--- a/testsuite/gtk/sortmodel.c
+++ b/testsuite/gtk/sortmodel.c
@@ -20,6 +20,7 @@
#include "treemodel.h"
#include "gtktreemodelrefcount.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
ref_count_single_level (void)
diff --git a/testsuite/gtk/treemodel.c b/testsuite/gtk/treemodel.c
index 3a0c0bc3ec..6dffbdd1e5 100644
--- a/testsuite/gtk/treemodel.c
+++ b/testsuite/gtk/treemodel.c
@@ -19,6 +19,8 @@
#include "treemodel.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
int
main (int argc,
char **argv)
diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c
index 1ea7e7ef1a..4ddaf65f7c 100644
--- a/testsuite/gtk/treeview.c
+++ b/testsuite/gtk/treeview.c
@@ -17,6 +17,8 @@
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
test_bug_546005 (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]