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.
This commit is contained in:
Matthias Clasen
2022-10-07 21:15:03 -04:00
parent 4941ef659f
commit c32fed9238
10 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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

View File

@@ -18,6 +18,8 @@
#include "gtktreemodelrefcount.h"
#include "treemodel.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* And the tests themselves */
static void

View File

@@ -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

View File

@@ -20,6 +20,7 @@
#include "treemodel.h"
#include "gtktreemodelrefcount.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
ref_count_single_level (void)

View File

@@ -19,6 +19,8 @@
#include "treemodel.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
int
main (int argc,
char **argv)

View File

@@ -17,6 +17,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
void register_list_store_tests (void);
void register_tree_store_tests (void);
void register_sort_model_tests (void);

View File

@@ -19,6 +19,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
test_append (void)
{

View File

@@ -17,6 +17,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
test_bug_546005 (void)
{