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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "gtktreemodelrefcount.h"
|
||||
#include "treemodel.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
/* And the tests themselves */
|
||||
|
||||
static void
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "treemodel.h"
|
||||
#include "gtktreemodelrefcount.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static void
|
||||
ref_count_single_level (void)
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
#include "treemodel.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
int
|
||||
main (int argc,
|
||||
char **argv)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static void
|
||||
test_append (void)
|
||||
{
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static void
|
||||
test_bug_546005 (void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user