tests: Ignore deprecations
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Oct 2022 00:59:10 +0000 (20:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 11 Oct 2022 21:18:21 +0000 (17:18 -0400)
Eventually, most of these tests should be dropped.

37 files changed:
tests/overlayscroll.c
tests/testaccel.c
tests/testbaseline.c
tests/testcellarea.c
tests/testcellrenderertext.c
tests/testcombo.c
tests/testcombochange.c
tests/testellipsise.c
tests/testflowbox.c
tests/testfontoptions.c
tests/testgmenu.c
tests/testgrouping.c
tests/testgtk.c
tests/testiconview-keynav.c
tests/testiconview.c
tests/testinfobar.c
tests/testkineticscrolling.c
tests/testlist.c
tests/testlist3.c
tests/testmenubutton.c
tests/testpopover.c
tests/testscrolledwindow.c
tests/teststack.c
tests/testtooltips.c
tests/testtreechanging.c
tests/testtreecolumns.c
tests/testtreecolumnsizing.c
tests/testtreednd.c
tests/testtreeedit.c
tests/testtreeflow.c
tests/testtreefocus.c
tests/testtreemodel.c
tests/testtreepos.c
tests/testtreesort.c
tests/testtreeview.c
tests/testverticalcells.c
tests/treestoretest.c

index 35ad08e5fde038f59a089f25cd7c2b100715221d..bf6783989bdb9e407c80ebbab2755f1b756371da 100644 (file)
@@ -18,6 +18,8 @@
 #include <gtk/gtk.h>
 #include <string.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static char *
 get_content (void)
 {
index 3fde8a5d5ebe0ddfddba8382730e25ac4580eee9..9dd7abbfb44ebb5bd3f05c4d29c29592eecfec76 100644 (file)
@@ -18,6 +18,8 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static void
 accel_edited_callback (GtkCellRendererText *cell,
                        const char          *path_string,
index f81c9379518d55ce69ff0755ffbfc5b5a98d8b42..06f362c56f4c0c14aadda38b35612e6a75be721d 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static const char *baseline_pos_str[] = {
   "BASELINE_POSITION_TOP",
   "BASELINE_POSITION_CENTER",
index 4e08983cea51fdd3987e4956cb67f9534e89b356..212988b610da7e2a4a448044c25cc9e6b35a3cb4 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /*******************************************************
  *                      Simple Test                    *
  *******************************************************/
index 1f72ccf9dbc55318c44fbe908957bccd730725fd..fd40a751881f3d29a8994e399f21f8b92c76ce40 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 #define COL_BACKGROUND 15
 #define COL_LINE_NUM   16
 #define NUM_COLS       17 /* change this when adding columns */
index 21794045df19c90846f4e08e0b4f16b50bcff103..6cfb010bec37fc4aadca23499b2e3ab689ecaa47 100644 (file)
@@ -19,6 +19,8 @@
 #include <string.h>
 #include <stdio.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /**
  * oh yes, this test app surely has a lot of ugly code
  */
index ba06bf88da2ccf7c2a375d6e73114cf3f1883b1a..0833e98b476d8e1ea555316b95a56c447e8908e6 100644 (file)
@@ -20,6 +20,8 @@
 #include <gtk/gtk.h>
 #include <stdarg.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 GtkWidget *text_view;
 GtkListStore *model;
 GArray *contents;
index 81ebd98f8e4e195d5ede4dd5d5d21d11a00dde8b..e497dd38055df63d5a07a6d9cde07d0eae0ad5e3 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static void
 combo_changed_cb (GtkWidget *combo,
                  gpointer   data)
index c43f2a2575183ceb20f2c70a63b91d28e0fdcf51..b6721793217c524941bfb9a9807c7c41edfff80a 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 enum {
   SIMPLE_ITEMS = 0,
   FOCUS_ITEMS,
index e47d89c391c045dae73c4ad17ca5be92fba65579..85d95e1ce1ec39ef0cb1b658cf39e724d6b28e86 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static GtkWidget *antialias;
 static GtkWidget *subpixel;
 static GtkWidget *hintstyle;
index 79856f21fa62326ddec826c8bb9c0dc76e806e7b..009b2b29dd5403144ee4dca7cdee6a6d3a583ff8 100644 (file)
@@ -21,6 +21,8 @@
 #include <gio/gio.h>
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /* TODO
  *
  * - Labeled sections
index 9863f5da4b2b6d0b04e96935f1690611d1eae6b8..323ebe47965cdef7432c4f6287dbb0c9f66733d9 100644 (file)
@@ -1,5 +1,6 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
 static GtkTreeModel *
 create_model (void)
index e7cebbc1003105a3ceaf447b24d2576176ca27fc..7974620f2a82fc22f6a0faf882ed5261731e5afc 100644 (file)
@@ -49,6 +49,8 @@
 
 #include "test.xpm"
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static gboolean done = FALSE;
 
 static gboolean
index f7a97223c798e05a492a0183d2b756d1f29c4a5d..254ed6542e6a4444f617c53230c9e6e722f7cb11 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static GtkTreeModel *
 get_model (void)
 {
index e3494db792e74a6ce1f12c5525d40bdee1ef5cac..b638127cab8a563561623b7f99adff337be3bfff 100644 (file)
@@ -20,6 +20,8 @@
 #include <sys/types.h>
 #include <string.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 #define NUMBER_OF_ITEMS   10
 #define SOME_ITEMS       100
 #define MANY_ITEMS     10000
index a49403d1ff83ef4e6aa5d088a89fffb670d265dd..cd751a1748ee39b5b54e5fadff6c0b941f0d617e 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef enum {
   RESPONSE_UNREVEAL,
 } Response;
index e492e5135f161f5b035889c1e302c9cc8e2a33a4..9ce50288c8ade84995edcdd91bcaf5135fbd5994 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static void
 on_button_clicked (GtkWidget *widget, gpointer data)
 {
index 44cdbc9c9c7150ac6afcbe5cc1dc2fc7cdc14008..435e2250f2f9c143e399b9432fbd1f74c47e06a2 100644 (file)
@@ -2,6 +2,8 @@
 
 #include <string.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef struct _Row Row;
 typedef struct _RowClass RowClass;
 
index bad61c1783420955e23718edfd648549a403d615..87b8b44b62b178e5e49efa215c91fd9adba3b616 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static GdkContentProvider *
 prepare (GtkDragSource *source,
          double         x,
index 4752cce214cf5537066c00e95ae94716cecb7c70..8fb8431a1dbd47ee8f77b116fd2f20833db7cd36 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 #define INITIAL_HALIGN          GTK_ALIGN_START
 #define INITIAL_VALIGN          GTK_ALIGN_START
 
index cdd09de99b325da4e5a3079cc78fbc997f155eba..c7bfc48fc304bcfa0d2fb75366afa46cd1988ece 100644 (file)
@@ -1,6 +1,8 @@
 #include <gtk/gtk.h>
 #include <glib/gstdio.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static void
 activate (GSimpleAction *action,
           GVariant      *parameter,
index 631b2059aadf853031df9c3567224d765ea80bc3..59ce67ac218ce6f8fdd1f4833a4bc372130cb17f 100644 (file)
@@ -1,5 +1,6 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
 static void
 horizontal_policy_changed (GtkComboBox *combo_box,
index d1deaacf34d25daced14fabd9d8dc76adda8e364..fa15b560047c25637f0b73ec9a6a741408f5aff3 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 GtkWidget *stack;
 GtkWidget *switcher;
 GtkWidget *sidebar;
index 80f60b67ccda3a9c5ed78733b63239164b2665e1..c312ce69b125755c72ae993ff8d6a80f4d8b7af1 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef struct _MyTooltip MyTooltip;
 typedef struct _MyTooltipClass MyTooltipClass;
 
index bbbc210828db21aead2eead4a925fb9c8106ea8d..7845fd8fa1ebd9eb704f966b87e0eb086125da2e 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 #define MIN_ROWS 50
 #define MAX_ROWS 150
 
index b67e318d4dc3a140d9e707f0049f5f97363cc681..4fc4fb74108fc4f81612e75e3ccf35af61043ba7 100644 (file)
@@ -19,6 +19,8 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /*
  * README README README README README README README README README README
  * README README README README README README README README README README
index d0c0c23a929c07acd6439899bbc732300c8e20e5..48a08e26d7ef7af003f28ef7c3c8b6c43a471ba9 100644 (file)
@@ -23,6 +23,8 @@
 #include <gtk/gtk.h>
 #include <string.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 #define NO_EXPAND "No expandable columns"
 #define SINGLE_EXPAND "One expandable column"
 #define MULTI_EXPAND "Multiple expandable columns"
index d219173f4032c936e88c0aff07419e620d34fc6b..5debefaf87db61ee719573cdf3b80941b53d032b 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef GtkListStore MyModel;
 typedef GtkListStoreClass MyModelClass;
 
index 984cc213558fac9e8810176f23a818326db1efca..3e70813c32124ed5d332782e1a649d651c612f84 100644 (file)
@@ -19,6 +19,8 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef struct {
   const char *string;
   gboolean is_editable;
index 6b882bff363cfb36a366ab055a821724b3f7a8df..6e2474bc6a894e7a0c2e23fd4ecdb519f4ade029 100644 (file)
@@ -19,6 +19,8 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 GtkTreeModel *model = NULL;
 static GRand *grand = NULL;
 GtkTreeSelection *selection = NULL;
index 10e98daadab7ff2001800b371514b459136bb291..ac29abf903576f4cf9b2529de6acc52ac2d1e6f1 100644 (file)
@@ -19,6 +19,8 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef struct _TreeStruct TreeStruct;
 struct _TreeStruct
 {
index b4d0b8b8b40b25259b7af8c834847e3742fc96d7..1f79e390f77154b9b7ea0854ec8ca9e7e6cc72f2 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static int repeats = 2;
 static int max_size = 8;
 
index 81951c38e6ffcd59e38af1b36c6d6ee99314150e..d3cabaab3f9e7b490549fa2da45b9fbe2468bf1f 100644 (file)
@@ -1,5 +1,7 @@
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 static gboolean
 clicked_icon (GtkTreeView  *tv,
               int           x,
index a83945b06dd4ea65eafe4795049d765476b3b33f..dac2aafcb089ff059f49ca6fd3bcddaccd6e3048 100644 (file)
@@ -19,6 +19,7 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
 typedef struct _ListSort ListSort;
 struct _ListSort
index 3aa24d01ca3c8f4205d8f315c6269809b8abc4c0..6a828c8f9042d261d89838f1919bfa5709e764bd 100644 (file)
@@ -20,6 +20,8 @@
 #include <gtk/gtk.h>
 #include <stdlib.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 /* Don't copy this bad example; inline RGB data is always a better
  * idea than inline XPMs.
  */
index 51df9c1e5c8e5d82b1639774e3c598d0813adc42..739e7e6068e28522e3cb7d2808747a4fb8d87823 100644 (file)
@@ -22,6 +22,8 @@
 #include "config.h"
 #include <gtk/gtk.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 typedef struct _TreeEntry TreeEntry;
 
 struct _TreeEntry {
index e477def08f34946e6092c9fcb523d1497d7decca..b7f4a622bba21fdd2601c334131ba5c1bb5bc5d0 100644 (file)
@@ -20,6 +20,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
 GtkTreeStore *base_model;
 static int node_count = 0;