tests: Ignore deprecations

Eventually, most of these tests should be dropped.
This commit is contained in:
Matthias Clasen 2022-10-07 20:59:10 -04:00
parent c32fed9238
commit 69e4c9b01e
37 changed files with 71 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <string.h> #include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static char * static char *
get_content (void) get_content (void)
{ {

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h> #include <gdk/gdkkeysyms.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void static void
accel_edited_callback (GtkCellRendererText *cell, accel_edited_callback (GtkCellRendererText *cell,
const char *path_string, const char *path_string,

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static const char *baseline_pos_str[] = { static const char *baseline_pos_str[] = {
"BASELINE_POSITION_TOP", "BASELINE_POSITION_TOP",
"BASELINE_POSITION_CENTER", "BASELINE_POSITION_CENTER",

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/******************************************************* /*******************************************************
* Simple Test * * Simple Test *
*******************************************************/ *******************************************************/

View File

@ -21,6 +21,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define COL_BACKGROUND 15 #define COL_BACKGROUND 15
#define COL_LINE_NUM 16 #define COL_LINE_NUM 16
#define NUM_COLS 17 /* change this when adding columns */ #define NUM_COLS 17 /* change this when adding columns */

View File

@ -19,6 +19,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/** /**
* oh yes, this test app surely has a lot of ugly code * oh yes, this test app surely has a lot of ugly code
*/ */

View File

@ -20,6 +20,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <stdarg.h> #include <stdarg.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkWidget *text_view; GtkWidget *text_view;
GtkListStore *model; GtkListStore *model;
GArray *contents; GArray *contents;

View File

@ -24,6 +24,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void static void
combo_changed_cb (GtkWidget *combo, combo_changed_cb (GtkWidget *combo,
gpointer data) gpointer data)

View File

@ -17,6 +17,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
enum { enum {
SIMPLE_ITEMS = 0, SIMPLE_ITEMS = 0,
FOCUS_ITEMS, FOCUS_ITEMS,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkWidget *antialias; static GtkWidget *antialias;
static GtkWidget *subpixel; static GtkWidget *subpixel;
static GtkWidget *hintstyle; static GtkWidget *hintstyle;

View File

@ -21,6 +21,8 @@
#include <gio/gio.h> #include <gio/gio.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* TODO /* TODO
* *
* - Labeled sections * - Labeled sections

View File

@ -1,5 +1,6 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkTreeModel * static GtkTreeModel *
create_model (void) create_model (void)

View File

@ -49,6 +49,8 @@
#include "test.xpm" #include "test.xpm"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static gboolean done = FALSE; static gboolean done = FALSE;
static gboolean static gboolean

View File

@ -25,6 +25,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkTreeModel * static GtkTreeModel *
get_model (void) get_model (void)
{ {

View File

@ -20,6 +20,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define NUMBER_OF_ITEMS 10 #define NUMBER_OF_ITEMS 10
#define SOME_ITEMS 100 #define SOME_ITEMS 100
#define MANY_ITEMS 10000 #define MANY_ITEMS 10000

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef enum { typedef enum {
RESPONSE_UNREVEAL, RESPONSE_UNREVEAL,
} Response; } Response;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void static void
on_button_clicked (GtkWidget *widget, gpointer data) on_button_clicked (GtkWidget *widget, gpointer data)
{ {

View File

@ -2,6 +2,8 @@
#include <string.h> #include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _Row Row; typedef struct _Row Row;
typedef struct _RowClass RowClass; typedef struct _RowClass RowClass;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GdkContentProvider * static GdkContentProvider *
prepare (GtkDragSource *source, prepare (GtkDragSource *source,
double x, double x,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define INITIAL_HALIGN GTK_ALIGN_START #define INITIAL_HALIGN GTK_ALIGN_START
#define INITIAL_VALIGN GTK_ALIGN_START #define INITIAL_VALIGN GTK_ALIGN_START

View File

@ -1,6 +1,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <glib/gstdio.h> #include <glib/gstdio.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void static void
activate (GSimpleAction *action, activate (GSimpleAction *action,
GVariant *parameter, GVariant *parameter,

View File

@ -1,5 +1,6 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void static void
horizontal_policy_changed (GtkComboBox *combo_box, horizontal_policy_changed (GtkComboBox *combo_box,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkWidget *stack; GtkWidget *stack;
GtkWidget *switcher; GtkWidget *switcher;
GtkWidget *sidebar; GtkWidget *sidebar;

View File

@ -23,6 +23,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _MyTooltip MyTooltip; typedef struct _MyTooltip MyTooltip;
typedef struct _MyTooltipClass MyTooltipClass; typedef struct _MyTooltipClass MyTooltipClass;

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define MIN_ROWS 50 #define MIN_ROWS 50
#define MAX_ROWS 150 #define MAX_ROWS 150

View File

@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.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
* README README README README README README README README README README * README README README README README README README README README README

View File

@ -23,6 +23,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <string.h> #include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define NO_EXPAND "No expandable columns" #define NO_EXPAND "No expandable columns"
#define SINGLE_EXPAND "One expandable column" #define SINGLE_EXPAND "One expandable column"
#define MULTI_EXPAND "Multiple expandable columns" #define MULTI_EXPAND "Multiple expandable columns"

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef GtkListStore MyModel; typedef GtkListStore MyModel;
typedef GtkListStoreClass MyModelClass; typedef GtkListStoreClass MyModelClass;

View File

@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct { typedef struct {
const char *string; const char *string;
gboolean is_editable; gboolean is_editable;

View File

@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkTreeModel *model = NULL; GtkTreeModel *model = NULL;
static GRand *grand = NULL; static GRand *grand = NULL;
GtkTreeSelection *selection = NULL; GtkTreeSelection *selection = NULL;

View File

@ -19,6 +19,8 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _TreeStruct TreeStruct; typedef struct _TreeStruct TreeStruct;
struct _TreeStruct struct _TreeStruct
{ {

View File

@ -25,6 +25,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static int repeats = 2; static int repeats = 2;
static int max_size = 8; static int max_size = 8;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static gboolean static gboolean
clicked_icon (GtkTreeView *tv, clicked_icon (GtkTreeView *tv,
int x, int x,

View File

@ -19,6 +19,7 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _ListSort ListSort; typedef struct _ListSort ListSort;
struct _ListSort struct _ListSort

View File

@ -20,6 +20,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <stdlib.h> #include <stdlib.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* Don't copy this bad example; inline RGB data is always a better /* Don't copy this bad example; inline RGB data is always a better
* idea than inline XPMs. * idea than inline XPMs.
*/ */

View File

@ -22,6 +22,8 @@
#include "config.h" #include "config.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _TreeEntry TreeEntry; typedef struct _TreeEntry TreeEntry;
struct _TreeEntry { struct _TreeEntry {

View File

@ -20,6 +20,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkTreeStore *base_model; GtkTreeStore *base_model;
static int node_count = 0; static int node_count = 0;