From 69e4c9b01e0db22db96aed7d700ac98c698e3390 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Oct 2022 20:59:10 -0400 Subject: [PATCH] tests: Ignore deprecations Eventually, most of these tests should be dropped. --- tests/overlayscroll.c | 2 ++ tests/testaccel.c | 2 ++ tests/testbaseline.c | 2 ++ tests/testcellarea.c | 2 ++ tests/testcellrenderertext.c | 2 ++ tests/testcombo.c | 2 ++ tests/testcombochange.c | 2 ++ tests/testellipsise.c | 2 ++ tests/testflowbox.c | 2 ++ tests/testfontoptions.c | 2 ++ tests/testgmenu.c | 2 ++ tests/testgrouping.c | 1 + tests/testgtk.c | 2 ++ tests/testiconview-keynav.c | 2 ++ tests/testiconview.c | 2 ++ tests/testinfobar.c | 2 ++ tests/testkineticscrolling.c | 2 ++ tests/testlist.c | 2 ++ tests/testlist3.c | 2 ++ tests/testmenubutton.c | 2 ++ tests/testpopover.c | 2 ++ tests/testscrolledwindow.c | 1 + tests/teststack.c | 2 ++ tests/testtooltips.c | 2 ++ tests/testtreechanging.c | 2 ++ tests/testtreecolumns.c | 2 ++ tests/testtreecolumnsizing.c | 2 ++ tests/testtreednd.c | 2 ++ tests/testtreeedit.c | 2 ++ tests/testtreeflow.c | 2 ++ tests/testtreefocus.c | 2 ++ tests/testtreemodel.c | 2 ++ tests/testtreepos.c | 2 ++ tests/testtreesort.c | 1 + tests/testtreeview.c | 2 ++ tests/testverticalcells.c | 2 ++ tests/treestoretest.c | 2 ++ 37 files changed, 71 insertions(+) diff --git a/tests/overlayscroll.c b/tests/overlayscroll.c index 35ad08e5fd..bf6783989b 100644 --- a/tests/overlayscroll.c +++ b/tests/overlayscroll.c @@ -18,6 +18,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static char * get_content (void) { diff --git a/tests/testaccel.c b/tests/testaccel.c index 3fde8a5d5e..9dd7abbfb4 100644 --- a/tests/testaccel.c +++ b/tests/testaccel.c @@ -18,6 +18,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void accel_edited_callback (GtkCellRendererText *cell, const char *path_string, diff --git a/tests/testbaseline.c b/tests/testbaseline.c index f81c937951..06f362c56f 100644 --- a/tests/testbaseline.c +++ b/tests/testbaseline.c @@ -18,6 +18,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static const char *baseline_pos_str[] = { "BASELINE_POSITION_TOP", "BASELINE_POSITION_CENTER", diff --git a/tests/testcellarea.c b/tests/testcellarea.c index 4e08983cea..212988b610 100644 --- a/tests/testcellarea.c +++ b/tests/testcellarea.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /******************************************************* * Simple Test * *******************************************************/ diff --git a/tests/testcellrenderertext.c b/tests/testcellrenderertext.c index 1f72ccf9db..fd40a75188 100644 --- a/tests/testcellrenderertext.c +++ b/tests/testcellrenderertext.c @@ -21,6 +21,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define COL_BACKGROUND 15 #define COL_LINE_NUM 16 #define NUM_COLS 17 /* change this when adding columns */ diff --git a/tests/testcombo.c b/tests/testcombo.c index 21794045df..6cfb010bec 100644 --- a/tests/testcombo.c +++ b/tests/testcombo.c @@ -19,6 +19,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /** * oh yes, this test app surely has a lot of ugly code */ diff --git a/tests/testcombochange.c b/tests/testcombochange.c index ba06bf88da..0833e98b47 100644 --- a/tests/testcombochange.c +++ b/tests/testcombochange.c @@ -20,6 +20,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + GtkWidget *text_view; GtkListStore *model; GArray *contents; diff --git a/tests/testellipsise.c b/tests/testellipsise.c index 81ebd98f8e..e497dd3805 100644 --- a/tests/testellipsise.c +++ b/tests/testellipsise.c @@ -24,6 +24,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void combo_changed_cb (GtkWidget *combo, gpointer data) diff --git a/tests/testflowbox.c b/tests/testflowbox.c index c43f2a2575..b672179321 100644 --- a/tests/testflowbox.c +++ b/tests/testflowbox.c @@ -17,6 +17,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + enum { SIMPLE_ITEMS = 0, FOCUS_ITEMS, diff --git a/tests/testfontoptions.c b/tests/testfontoptions.c index e47d89c391..85d95e1ce1 100644 --- a/tests/testfontoptions.c +++ b/tests/testfontoptions.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static GtkWidget *antialias; static GtkWidget *subpixel; static GtkWidget *hintstyle; diff --git a/tests/testgmenu.c b/tests/testgmenu.c index 79856f21fa..009b2b29dd 100644 --- a/tests/testgmenu.c +++ b/tests/testgmenu.c @@ -21,6 +21,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* TODO * * - Labeled sections diff --git a/tests/testgrouping.c b/tests/testgrouping.c index 9863f5da4b..323ebe4796 100644 --- a/tests/testgrouping.c +++ b/tests/testgrouping.c @@ -1,5 +1,6 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS static GtkTreeModel * create_model (void) diff --git a/tests/testgtk.c b/tests/testgtk.c index e7cebbc100..7974620f2a 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -49,6 +49,8 @@ #include "test.xpm" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static gboolean done = FALSE; static gboolean diff --git a/tests/testiconview-keynav.c b/tests/testiconview-keynav.c index f7a97223c7..254ed6542e 100644 --- a/tests/testiconview-keynav.c +++ b/tests/testiconview-keynav.c @@ -25,6 +25,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static GtkTreeModel * get_model (void) { diff --git a/tests/testiconview.c b/tests/testiconview.c index e3494db792..b638127cab 100644 --- a/tests/testiconview.c +++ b/tests/testiconview.c @@ -20,6 +20,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define NUMBER_OF_ITEMS 10 #define SOME_ITEMS 100 #define MANY_ITEMS 10000 diff --git a/tests/testinfobar.c b/tests/testinfobar.c index a49403d1ff..cd751a1748 100644 --- a/tests/testinfobar.c +++ b/tests/testinfobar.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef enum { RESPONSE_UNREVEAL, } Response; diff --git a/tests/testkineticscrolling.c b/tests/testkineticscrolling.c index e492e5135f..9ce50288c8 100644 --- a/tests/testkineticscrolling.c +++ b/tests/testkineticscrolling.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void on_button_clicked (GtkWidget *widget, gpointer data) { diff --git a/tests/testlist.c b/tests/testlist.c index 44cdbc9c9c..435e2250f2 100644 --- a/tests/testlist.c +++ b/tests/testlist.c @@ -2,6 +2,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct _Row Row; typedef struct _RowClass RowClass; diff --git a/tests/testlist3.c b/tests/testlist3.c index bad61c1783..87b8b44b62 100644 --- a/tests/testlist3.c +++ b/tests/testlist3.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static GdkContentProvider * prepare (GtkDragSource *source, double x, diff --git a/tests/testmenubutton.c b/tests/testmenubutton.c index 4752cce214..8fb8431a1d 100644 --- a/tests/testmenubutton.c +++ b/tests/testmenubutton.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define INITIAL_HALIGN GTK_ALIGN_START #define INITIAL_VALIGN GTK_ALIGN_START diff --git a/tests/testpopover.c b/tests/testpopover.c index cdd09de99b..c7bfc48fc3 100644 --- a/tests/testpopover.c +++ b/tests/testpopover.c @@ -1,6 +1,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static void activate (GSimpleAction *action, GVariant *parameter, diff --git a/tests/testscrolledwindow.c b/tests/testscrolledwindow.c index 631b2059aa..59ce67ac21 100644 --- a/tests/testscrolledwindow.c +++ b/tests/testscrolledwindow.c @@ -1,5 +1,6 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS static void horizontal_policy_changed (GtkComboBox *combo_box, diff --git a/tests/teststack.c b/tests/teststack.c index d1deaacf34..fa15b56004 100644 --- a/tests/teststack.c +++ b/tests/teststack.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + GtkWidget *stack; GtkWidget *switcher; GtkWidget *sidebar; diff --git a/tests/testtooltips.c b/tests/testtooltips.c index 80f60b67cc..c312ce69b1 100644 --- a/tests/testtooltips.c +++ b/tests/testtooltips.c @@ -23,6 +23,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct _MyTooltip MyTooltip; typedef struct _MyTooltipClass MyTooltipClass; diff --git a/tests/testtreechanging.c b/tests/testtreechanging.c index bbbc210828..7845fd8fa1 100644 --- a/tests/testtreechanging.c +++ b/tests/testtreechanging.c @@ -18,6 +18,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define MIN_ROWS 50 #define MAX_ROWS 150 diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index b67e318d4d..4fc4fb7410 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -19,6 +19,8 @@ #include "config.h" #include +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 diff --git a/tests/testtreecolumnsizing.c b/tests/testtreecolumnsizing.c index d0c0c23a92..48a08e26d7 100644 --- a/tests/testtreecolumnsizing.c +++ b/tests/testtreecolumnsizing.c @@ -23,6 +23,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + #define NO_EXPAND "No expandable columns" #define SINGLE_EXPAND "One expandable column" #define MULTI_EXPAND "Multiple expandable columns" diff --git a/tests/testtreednd.c b/tests/testtreednd.c index d219173f40..5debefaf87 100644 --- a/tests/testtreednd.c +++ b/tests/testtreednd.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef GtkListStore MyModel; typedef GtkListStoreClass MyModelClass; diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c index 984cc21355..3e70813c32 100644 --- a/tests/testtreeedit.c +++ b/tests/testtreeedit.c @@ -19,6 +19,8 @@ #include "config.h" #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct { const char *string; gboolean is_editable; diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index 6b882bff36..6e2474bc6a 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -19,6 +19,8 @@ #include "config.h" #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + GtkTreeModel *model = NULL; static GRand *grand = NULL; GtkTreeSelection *selection = NULL; diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c index 10e98daada..ac29abf903 100644 --- a/tests/testtreefocus.c +++ b/tests/testtreefocus.c @@ -19,6 +19,8 @@ #include "config.h" #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct _TreeStruct TreeStruct; struct _TreeStruct { diff --git a/tests/testtreemodel.c b/tests/testtreemodel.c index b4d0b8b8b4..1f79e390f7 100644 --- a/tests/testtreemodel.c +++ b/tests/testtreemodel.c @@ -25,6 +25,8 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static int repeats = 2; static int max_size = 8; diff --git a/tests/testtreepos.c b/tests/testtreepos.c index 81951c38e6..d3cabaab3f 100644 --- a/tests/testtreepos.c +++ b/tests/testtreepos.c @@ -1,5 +1,7 @@ #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + static gboolean clicked_icon (GtkTreeView *tv, int x, diff --git a/tests/testtreesort.c b/tests/testtreesort.c index a83945b06d..dac2aafcb0 100644 --- a/tests/testtreesort.c +++ b/tests/testtreesort.c @@ -19,6 +19,7 @@ #include "config.h" #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS typedef struct _ListSort ListSort; struct _ListSort diff --git a/tests/testtreeview.c b/tests/testtreeview.c index 3aa24d01ca..6a828c8f90 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -20,6 +20,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + /* Don't copy this bad example; inline RGB data is always a better * idea than inline XPMs. */ diff --git a/tests/testverticalcells.c b/tests/testverticalcells.c index 51df9c1e5c..739e7e6068 100644 --- a/tests/testverticalcells.c +++ b/tests/testverticalcells.c @@ -22,6 +22,8 @@ #include "config.h" #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct _TreeEntry TreeEntry; struct _TreeEntry { diff --git a/tests/treestoretest.c b/tests/treestoretest.c index e477def08f..b7f4a622bb 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -20,6 +20,8 @@ #include #include +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + GtkTreeStore *base_model; static int node_count = 0;